Hello!
OapiRequestValidatorWithOptions has ambiguous API. Not all fields from openapi3filter.Options are used:
oapimdlwr.OapiRequestValidatorWithOptions(v1Swagger, &oapimdlwr.Options{
Options: openapi3filter.Options{
ExcludeRequestBody: false,
ExcludeResponseBody: true, // Doesn't matter!
AuthenticationFunc: openapi3filter.NoopAuthenticationFunc,
},
})
My bad, but I was sure that the oapi-codegen could validate the response.
And was surprised to find that there is no use of the openapi3filter.ValidateResponse.