oapi-codegen
oapi-codegen copied to clipboard
Generate Go client and server boilerplate from OpenAPI 3 specifications
Unable at the moment to submit a PR, but we've pulled in `client.tmpl` locally as of commit d232e9efa9f54ee20ca60df885595bd23dc86759, and have applied the following patch of changes to the `client.tmpl` template....
By default bodies get decoded, this runs the risk of malicious large request bodies, or non-validated bodies. It should be(and is) possible to filter those requests. Unfortunately, the way to...
Currently, there is no easy way to know if an error is a request body deserialization. Please create a custom error type for wrapping these errors so we can use...
Hello everyone, I've just spent some time debugging this, I solved it for myself given that it actually was a typo, but I feel like this is a real issue....
When creating a chi HttpHander, setting the BaseURL to anything causes the OaopiRequestValidator middleware to intercept the request and return a 400 Bad Request. ```go return api.HandlerWithOptions( &impl{}, api.ChiServerOptions{ BaseURL:...
When using `x-go-type-skip-optional-pointer` on an optional header, invalid code gets generated which cannot compile. ```yaml openapi: 3.0.3 info: title: Form API version: '1.0' paths: /api/v1/forms/contact: post: operationId: sendContactForm parameters: -...
Previously, when combining two schema's using allOf, the discriminator would not carry over to the resulting merged schema.
Unless I'm wrong golangci-lint is used in this project but without any configuration, so with the default golangci-lint setting. So a very limited set of linters are enabled Is there...
Example code that breaks when generating using 2.1.0+: ``` package main import ( "fmt" "github.com/oapiexample/api" "github.com/oapiexample/otherapi" ) func main() { var a api.GetExampleResponseObject var b otherapi.GetOtherExample400JSONResponse switch a.(type) { case...