oapi-codegen
oapi-codegen copied to clipboard
Generate Go client and server boilerplate from OpenAPI 3 specifications
In adding `x-omitzero` in #1944, it's _likely_ not an issue ([via](https://pkg.go.dev/encoding/json)) when both `omitzero` and `omitempty` are used: > If both "omitempty" and "omitzero" are specified, the field will be...
## Summary Hello maintainers 👋 New contributor to this project, so feedback very much welcome & appreciated! We just upgraded our internal OAS Spec to version 3.1, before running in...
Follow-on PR from https://github.com/oapi-codegen/nullable/pull/21. Please do not merge this before nullable/pull/21 lands (tests won't pass anyway). - Switch generator from deprecated `nullable.Nullable[T]` to output `nullable.Value[T]` for nullable fields - Update...
Hey, Having problems to reference a schema in a separate file. ```yaml paths: "/domains": get: description: List all Domains operationId: ListDomains tags: - domains responses: 202: description: Test content: application/json:...
When using paths from OAS spec without proper wildcard `{$}` suffix, the generator registers routes that conflict in `http.ServeMux`, causing runtime panic. The generated patterns should use `"{$}"` wildcard to...
When parameters are used, such as headers, oapi-codegen generates such server that ..RequestObject structure would include Params structure directly, however when params are big, this would cause not efficient copying...
Instead of generating them ourselves, an option would be to use [`go-enum`](https://github.com/abice/go-enum) Still unsure if we would then run `go generate`, or expect that this is added by users of...
Adds a property to opt-in avoiding the default value colliding with the value `default` for enum server variables. When set to true `Enum` is added to the variable name so...
Hi, I am using Gin, and I also want to use the `strict-server` option, but in some of my endpoints I still need the gin context. For example, I want...