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.
java.lang.IllegalArgumentException: Non-body HTTP method cannot contain @Body. ##### Description generator code @DELETE("device/flexEng/tenant") Call deviceFlexEngTenantDelete( @retrofit2.http.Body FlexEngTenantDeleteParam flexEngTenantDeleteParam ); Adjust to @HTTP(method = "DELETE",path = "/device/flexEng/tenant",hasBody = true) Call deviceFlexEngTenantDelete( @retrofit2.http.Body...
### 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...
##### Description I'm getting error when trying to run python -m swagger_server ```python (venv) bu@debian:~/repos/api/out$ python -m swagger_server Traceback (most recent call last): File "/usr/local/lib/python3.10/runpy.py", line 187, in _run_module_as_main mod_name,...
##### Description Wrong server code is generated when using multiple content types for different http response codes: ```java @Validated @Api(value = "Default", description = "the Default API") public interface DefaultApi...
### Description of the PR Before bugfix: a required and nullable attribute set to null/None causes a ValueError when received by the client. After bugfix: This error is only caused...
##### Description We are using swagger-codegen to generate Java code based on some OpenAPI specification. We noticed that the generation was taking a considerable amount of time so we decided...
##### Description By when can we expect the swagger codegen to support the OAS 3.1
##### Description Generated model code does not make any use of the `attribute_map` table which holds the mapping between the OpenAPI property names and pythonic property names. If you have...
##### Description  ##### Swagger-codegen version last version ##### Swagger declaration file content or url ##### Command line used for generation ##### Steps to reproduce ##### Related issues/PRs ##### Suggest...
##### Description I generated a client to consume an API. One of the endpoints returns an octet-stream of a zipped file with .zip extension. When receiving this file, I get...