Skip to content

Commit b3ba70c

Browse files
committed
chore: use new organization URL
1 parent b5ca5cb commit b3ba70c

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
@@ -73,14 +73,14 @@ type Options struct {
7373
UserData any
7474
Skipper echomiddleware.Skipper
7575
MultiErrorHandler MultiErrorHandler
76-
// SilenceServersWarning allows silencing a warning for https://github.com/deepmap/oapi-codegen/issues/882 that reports when an OpenAPI spec has `spec.Servers != nil`
76+
// SilenceServersWarning allows silencing a warning for https://github.com/oapi-codegen/oapi-codegen/issues/882 that reports when an OpenAPI spec has `spec.Servers != nil`
7777
SilenceServersWarning bool
7878
}
7979

8080
// OapiRequestValidatorWithOptions creates a validator from an OpenAPI spec, with validation options
8181
func OapiRequestValidatorWithOptions(spec *openapi3.T, options *Options) echo.MiddlewareFunc {
8282
if spec.Servers != nil && (options == nil || !options.SilenceServersWarning) {
83-
log.Println("WARN: OapiRequestValidatorWithOptions called with an OpenAPI spec that has `Servers` set. This may lead to an HTTP 400 with `no matching operation was found` when sending a valid request, as the validator performs `Host` header validation. If you're expecting `Host` header validation, you can silence this warning by setting `Options.SilenceServersWarning = true`. See https://github.com/deepmap/oapi-codegen/issues/882 for more information.")
83+
log.Println("WARN: OapiRequestValidatorWithOptions called with an OpenAPI spec that has `Servers` set. This may lead to an HTTP 400 with `no matching operation was found` when sending a valid request, as the validator performs `Host` header validation. If you're expecting `Host` header validation, you can silence this warning by setting `Options.SilenceServersWarning = true`. See https://github.com/oapi-codegen/oapi-codegen/issues/882 for more information.")
8484
}
8585

8686
router, err := gorillamux.NewRouter(spec)

0 commit comments

Comments
 (0)