oapi-codegen
oapi-codegen copied to clipboard
Generate Go client and server boilerplate from OpenAPI 3 specifications
When utilizing the strict server implementation, I am unable to apply a middleware that validates the request body against the spec. I quite like the strict server implementation as the...
Hey guys, I have been using this package for some time on a number of public API with great joy. However, I now have a need to set up JWT...
for the generated ServerInterfaceWrapper below, the middleware is executed before the below function is executed. Which is correct. I want to check the set APIKeyAuthScopes, but since the context is...
Version: v1.12.4 ``` grant_types: type: array enum: ["client_credentials", "authorization_code", "refresh_token"] ``` results into broken golang code - ``` AuthorizationCode ClientRequestGrantTypes = authorization_code ClientCredentials ClientRequestGrantTypes = client_credentials RefreshToken ClientRequestGrantTypes = refresh_token...
I have a number of smaller services that I generate API for (ideally) using the same custom user templates, all in different repositories. To prevent drift between my customized templates...
Hi, I am trying to generate a client with the following config: ```yaml package: "adguardhome" generate: models: true embedded-spec: true client: true output: pkg/go-adguard-home/client.go output-options: skip-prune: false client-type-name: AdguardHomeClient ```...
I've had to post-process a 3rd party spec because it has names that cause generated type names to collide – `components.schemas.deleteEventsResponse` collides with the `DeleteEventsResponse` generated for a `"operationId": "deleteEvents",`....
api file: https://github.com/circlefin/openapi/blob/master/openapi/yaml/payments.yaml Generate with the following config ```yaml package: cccpayment # circle client payment output: generated_payment/client.go generate: # types: true models: true client: true ``` #### using generated client...
The checks in mergeOpenapiSchemas complain if a discriminator is set for any of the schemas being merged. It seems that this should be allowed when merging allOfs (eg. an allOf...
I tried `oapi-codegen` for client generation. Using the client, I encountered that data format the REST API _server_ provides is not in line with https://swagger.io/docs/specification/data-models/data-types/#string (that requires [RFC 3339, section...