You signed in with another tab or window. Reload to refresh your session.You signed out in another tab or window. Reload to refresh your session.You switched accounts on another tab or window. Reload to refresh your session.Dismiss alert
Instead of just being for chi, we can take this opportunity to make it
clear this works for any net/http compatible router.
We can also make sure we've got test coverage for both Chi and Gorilla,
the routers that right now would be using this middleware.
⚠️ This README may be for the latest development version, which may contain unreleased changes. Please ensure you're looking at the README for the latest release version.
4
4
5
-
Middleware for the [Chi web server](https://github.com/go-chi/chi) for use with [deepmap/oapi-codegen](https://github.com/deepmap/oapi-codegen).
5
+
Middleware for servers that implement `net/http` handlers, for use with [deepmap/oapi-codegen](https://github.com/deepmap/oapi-codegen), which has been tested to work with:
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.")
0 commit comments