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.
how can I generate REST API : 1. add @javax.validation.Valid to rest class 2. add @javax.validation.Valid to method param  I check code apiServiceImpl.mustache ,seems we can't add any other...
##### Description We use swagger-codegen and have a property `query`, but in the Typescript export it is renamed to `_query`. With previous versions it worked. ##### Swagger-codegen version 3.0.55, seems...
##### Description The documentation shows that swagger-codegen(3.0.54) supports msf4j, but an error is reported during the actual code generation process and it does not support it. **Documentation link:**https://github.com/swagger-api/swagger-codegen/wiki/Server-stub-generator-HOWTO  **Actual...
##### Description Compiling the following yaml into a TypeScript-Fetch client results in an interface with an incorrect type. Specifically when the `additionalProperties` is set to true. ##### Swagger-codegen version SWAGGER_VERSION=3.0.55...
Example swagger. See broken property ```yaml openapi: 3.0.0 servers: - url: 'https://todo.vacs.fr/v1' - url: 'http://todo.vacs.fr/v1' info: title: Todo API description: Todo API version: 1.0.0 termsOfService: 'https://todo.vacs.fr/terms/' contact: email: [email protected] license:...
##### Description Since our main.yaml was getting oversized way too quickly we decided to split the file up in separate files and $ref them in the main.yaml. However when using...
### Description of the PR CodeQl workflow
##### Description Hello, I'm trying to generate dynamic query parameter names in spring boot, I'm trying to get this https://example.com/api_v3/v3/filters?static_arg=smth&freeform_arg1=value1&freeform_arg2=value2 but instead generated url is https://example.com/api_v3/v3/filters?static_arg=smth&applied_filters=class%20AppliedFilter%20%7B%0A%20%20%20%20%7Barg2%3Dvalue2%2C%20arg1%3Dvalue1%7D%0A%7D ##### Swagger-codegen version `3.0.55`...
##### Description Apparently the readOnly property is ignored for definitions of type object. In my example, SomeDefinition has a property someSubObject, which is an object and should be readOnly. So...
##### Description Not sure if it's my spec's issue but a null pointer exception was thrown. ##### Swagger-codegen version Latest code in `3.0.0` branch ##### Swagger declaration file content or...