oapi-codegen
oapi-codegen copied to clipboard
Generate Go client and server boilerplate from OpenAPI 3 specifications
Is it possible to use `securitySchemes` with gin? It appears there are only functions to create echo middleware for this. What I found from the documentation is something along the...
Hi all, I have a problem with codegen when OpenID Connect security scheme is defined in spec: ```yaml security: - oidc: - openid components: securitySchemes: oidc: type: openIdConnect openIdConnectUrl: ```...
For example, ```golang r.Group(func(r chi.Router) { r.Get(options.BaseURL+"/something", wrapper.CreateSomething) }) ``` it would be great to make the string `/something` become public constant, as enum string, so that the other code...
Closes #384
Move importMapping into globalState along side other global variables so its all in one place as per comment on that struct.
Add the ability to override type the default type mapping behaviour so that users can easily provide global control of their go type generation without having to use x-go-type for...
Improve command line compatibility between old and new style configs so existing user setups work as expected where possible. This restores -generate and -templates flags from deprecated states as the...
This PR adds the x-dynamodb as a option similar to x-oapi-codegen-extra-tags, it adds the dynamodbav tag on which is used by dynamodb However if you give the x-dynamodb filed omitempty...
# allow coexistence of anyOf and oneOf fields in single schema definition If some schema has anyOf, oneOf field, generating code get failed. (A while ago (before of commit:5a1784a), generating...
Hi there, ## Background I'm using `oapi-codegen` to generate Go types for the schemas written in yaml. But when I tried to generate one of the files, `oapi-codegen` crashed. I...