oapi-codegen
oapi-codegen copied to clipboard
Generate Go client and server boilerplate from OpenAPI 3 specifications
When an external reference imported via `import-mapping` such as the following has references (a chain of references), they are not resolved/imported and the generated code does not compile. `api/oapi.cfg.yml` ```yml...
As it's unable to work without a base server
```diff diff --git examples/extensions/xenumvarnames/api.yaml examples/extensions/xenumvarnames/api.yaml index 5601f4a5..8bdd308d 100644 --- examples/extensions/xenumvarnames/api.yaml +++ examples/extensions/xenumvarnames/api.yaml @@ -16,4 +16,3 @@ components: - EXP x-enum-varnames: - Active - - Expired diff --git examples/extensions/xenumvarnames/gen.go examples/extensions/xenumvarnames/gen.go index...
This should be useful (and would be likely to link in with the prototype that @deepmap-marcinr has been looking at) to allow For instance, for the ability to tune the...
Hi! I'm trying to use oapi-codegen to generate server stubs for our API here but I'm struggling to find a way to structure and organise my generated code in a...
Related to #1519 and to allow us to make it clearer "what constitutes a backport"
I'm planning on taking on #1521 to make it a bit easier to generate your own templates. To make writing templates easier in general, I'd also like to import [Sprig](https://github.com/Masterminds/sprig)...