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.
### Q&A (please complete the following information) - OS: Windows 10 - Browser: Firefox - Version: 109.0.1 - Method of installation: [e.g. npm, dist assets] webapp - Swagger-Editor version: [e.g....
##### Description I have an endpoint that returns a User object: ```yaml paths: /users/{id}: # ... responses: 200: content: application/json: schema: $ref: '#/components/schemas/User' ``` And models: ```yaml components: schemas: User:...
##### Description Generating C# code from a Swagger file, with regular expressions, is incorrect. We are consuming a Swagger file from a third-party. The model is very complex and contains...
##### Description I generated a PHP API Client for the [Azuracast API](https://www.azuracast.com/api/), and it works well, but some endpoints give the error message "``Class "" not found``" when I try...
##### Description Out of the box, the produced client code has api unit tests. These don't run because there is a missing dependecy: ``` org.glassfish.web javax.el 2.2.4 ``` ##### Swagger-codegen...
Hello, I have this error: ``` Fatal error: Uncaught Error: Class 'null' not found in /Users/mickael/Desktop/swagger-codegen/SwaggerClient-php/lib/ObjectSerializer.php:294 Stack trace: #0 /Users/mickael/Desktop/swagger-codegen/SwaggerClient-php/lib/ObjectSerializer.php(247): Swagger\Client\ObjectSerializer::deserialize(Object(stdClass), 'null', NULL) #1 /Users/mickael/Desktop/swagger-codegen/SwaggerClient-php/lib/ObjectSerializer.php(311): Swagger\Client\ObjectSerializer::deserialize(Array, 'null[]', NULL) #2 /Users/mickael/Desktop/swagger-codegen/SwaggerClient-php/lib/Api/DefaultApi.php(157):...
### 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....
##### Description When generating with kotlin-client a class like this: ```yaml Cat: allOf: - $ref: '#/components/schemas/Pet' - properties: hunts: type: boolean age: type: integer ``` ignores $ref and only generates...
##### Description When attempting to generate GO clients from a schema that uses Enums, it fails with error : ``` 15:58:49.856 [main] INFO i.s.c.v.g.t.AbstractTypeScriptClientCodegen - Template folder: null 15:58:49.856 [main]...
##### Description Query array declared with `collectionFormat(multi)` is not generated correctly, with `ids` concatenated without separator. ##### Swagger-codegen version `main` branch ##### Swagger declaration file content or url ``` {...