Skip to content

Commit c1f722e

Browse files
author
Jamie Tanna
committed
Lint: Ignore findings on string-based keys for Context
As it's probably a bit late to change this, in case it changes expected behaviour, via SA1029.
1 parent c662277 commit c1f722e

1 file changed

Lines changed: 2 additions & 2 deletions

File tree

oapi_validate.go

Lines changed: 2 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -130,12 +130,12 @@ func ValidateRequestFromContext(ctx echo.Context, router routers.Router, options
130130

131131
// Pass the Echo context into the request validator, so that any callbacks
132132
// which it invokes make it available.
133-
requestContext := context.WithValue(context.Background(), EchoContextKey, ctx)
133+
requestContext := context.WithValue(context.Background(), EchoContextKey, ctx) //nolint:staticcheck
134134

135135
if options != nil {
136136
validationInput.Options = &options.Options
137137
validationInput.ParamDecoder = options.ParamDecoder
138-
requestContext = context.WithValue(requestContext, UserDataKey, options.UserData)
138+
requestContext = context.WithValue(requestContext, UserDataKey, options.UserData) //nolint:staticcheck
139139
}
140140

141141
err = openapi3filter.ValidateRequest(requestContext, validationInput)

0 commit comments

Comments
 (0)