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 I have a fastapi defined interface with a enum (TaskStatus) and a structure (Task) containing an instance of that enum with a default. I extract the openapi.json from...
I'm using Swagger to generate Java from a JSON file. I have an enum in my JSON that looks like: "UploadSchemaType": { "type": "string", "enum": [ "ios_data", "ios_survey" ] }...
##### Description Java models should have a way to easily create a clone or copy. Cloneable seems like a bad idea so I think we're probably left with a copy...
##### Description The code generation seems to be incorrect I have 2 problems with swagger-codegen-maven-plugin on java and the library resttemplate. I use the sample describe here https://swagger.io/docs/specification/data-models/oneof-anyof-allof-not/ with Pet,...
##### Description Hi @niku - thanks for your library - it's been a great help to me. When testing it against teamwork.com swagger definition ([my fork](https://gist.github.com/fcbry/465e767f059504c05717fc715345bf22) with fixes to make...
### 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 Petstore sample so that CIs can verify the change. (For instance,...
##### Description Shade build-time errror on master - fixed by upgrade apache shade to 3.6.0 - I'll create a corresponding PR to upgrade that dependency. ##### Swagger-codegen version master (`61cfeac3b9d855b4eb8bffa0d118bece117bcb7d`)...
##### Description When executing a request using PHP generated code I am getting the following error: `Cannot use "parent" when current class scope has no parent` This occurs (in my...
In modules/swagger-codegen/src/main/resources/javaSpring/CustomInstantDeserializer.mustache:Line 203: ```throw context.mappingException("Expected type float, integer, or string.");``` The com.fasterxml.jackson.databind.DeserializationContext.mappingException(String) is an expired method and has been romoved in jackson-databind:2.16.0.(Swagger-codegen depends on jackson-databind-2.17.0 & CVE-2023-35116 Vulnerabilitiy reported in...
##### Description hi we are experiencing issue, the "skipIfSpecIsUnchanged: true" is not working for developers who are using windows system. The codegen always regenerates source code even there is no...