swagger-codegen
swagger-codegen copied to clipboard
swagger-codegen contains a template-driven engine to generate documentation, API clients and server stubs in different languages by parsing your OpenAPI / Swagger definition.
##### Description If there are two models in the swagger definition whose subproperties are the same, the code generator always uses the first one. e.g. take the following two definitions...
##### Description It seems java codegen doesn't support mastache as template engine. ##### Swagger-codegen version 3.0.13 ##### Swagger declaration file content or url ##### Command line used for generation java...
Bugfix. The two mustache templates for Ruby models were not properly terminated with a newline character, causing the generated Ruby code to be syntactically incorrect. Code generated before this fix:...
##### Description If a Swagger spec declares an enum but also specifies a `maxLength`, running swagger-codegen with `useBeanValidation` enabled, will tag the enum with `@Size` constraint. Invoking validation on the...
Add unit tests for ignoreUnknownJacksonAnnotation configuration property. Tests fixes for https://github.com/swagger-api/swagger-codegen/issues/11899 ### PR checklist - [x] Read the [contribution guidelines](https://github.com/swagger-api/swagger-codegen/blob/master/CONTRIBUTING.md). - [x] Ran the shell script under `./bin/` to update...
##### Description Internally, generated Python code uses absolute imports that hard-code the assumption that users have the package installed top-level with a name like "swagger_server". For example, the following line...
# Problem statement Swagger UI https://editor.swagger.io/ generated some invalid Golang client code and the code has some logical errors. ## Steps to reproduce 1. Go to the Swagger editor https://editor.swagger.io/...
### PR checklist - [x] Read the [contribution guidelines](https://github.com/swagger-api/swagger-codegen/blob/master/CONTRIBUTING.md). - [ ] ~~Ran the shell script under `./bin/` to update Petstore sample so that CIs can verify the change. (For...
### PR checklist @niku fixes #12465 - [x] Read the [contribution guidelines](https://github.com/swagger-api/swagger-codegen/blob/master/CONTRIBUTING.md). - [x] Ran the shell script under `./bin/` to update Petstore sample so that CIs can verify the...
##### Description I have an OpenAPI v2 yaml that is being converted to v3 by swagger-codegen-cli, and it ends up changing the behavior of my models from allowing any freeform...