zucchinho

Results 4 comments of zucchinho

i'm going to look at creating this middleware, will update here when i have a PR ready

i've got the bones of this for gin (which is the http router we use) but it could easily be repurposed to different implementations https://github.com/oapi-codegen/gin-middleware/pull/13

Essentially this is for use in conjunction with the `OapiRequestValidator`, which actually validates incoming requests against the schema. If you have defined responses in an OAS schema, and the responses...

I realise actually that it readily configurable using the `ErrorHandler` field in the options, which can be used to override the status code when the response violates the schema. This...