oapi-codegen
oapi-codegen copied to clipboard
Generate Go client and server boilerplate from OpenAPI 3 specifications
Hello. I'm trying to generate a client for the Confluence Cloud REST API based on its [OpenAPI Spec][confluence-openapi-spec]. The generation doesn't seem to work. I've tried with v1.11.1 and with...
Fix #719
### Version master (SHA fec990c8f82) ### Config ``` package: openapi generate: gorilla-server: true client: true models: true output: pkg/openapi/generated.go import-mapping: 'https://raw.githubusercontent.com/deepmap/oapi-codegen/master/examples/petstore-expanded/petstore-expanded.yaml': github.com/deepmap/oapi-codegen/examples/petstore-expanded ``` ### Spec ``` openapi: "3.0.0" info: version:...
This addresses #607 and is an alternative or companion to #653. Adds a new configuration parameter, `user-templates-dir`, on `OutputOptions` which allows for assigning a directory path to parse user-template overrides....
The types generator does not properly create structure types for models of the following format. The properties defined directly on the model are not included in the output struct: ```...
Firstly, thanks for the great work. While converting our configs to the new style I found that the config generator adds the actual templates as plain text under `output-options.user-templates` instead...
Normally, if we defined a path parameter, it will generate a route like `/special/{:action}` for gin. I want to know, how to generate a route like `/special/*action`.
As a means to avoid the breaking changes we introduced in v1.11.0, where the new-style configuration was made the default, we can tweak our heuristic for how we work out...
If the server returns an invalid response (for example status `503` with content type `text/html` from nginx), it can be helpful if the API client returns an error instead of...