oapi-codegen
oapi-codegen copied to clipboard
strict client
Hi, is there a way to generate a strict client that will warn if the data provided by the server doesn't comply with the specification anymore?
I've got a library that works under unit tests to validate it, which uses the https://github.com/getkin/kin-openapi#validating-http-requestsresponses. You can also enforce this server-side if your server using i.e. https://github.com/deepmap/oapi-codegen/blob/b1edf760c6e783a91dd007995bf42118550cab4f/examples/petstore-expanded/gorilla/petstore.go#L41