openapi-python-generator
openapi-python-generator copied to clipboard
A client generator from openapi for python.
"application/x-www-form-urlencoded" to add to operation_request_body_types in service_generator.py
Content-type "API application/x-www-form-urlencoded" is required for Access Token Request see RFC6749 (The OAuth 2.0 Authorization Framework) section 4.4.2 "Access Token Request" Could you please add this content-type to operation_request_body_types in...
**Describe the bug** In the HTTP world, 2xx response codes tend to be treated as success. For instance, 201 is an extension of 200 which indicates the creation of a...
**Describe the bug** --env-token-name flag is defaulted to `access_token`, its not possible to set it to `none` which would activate different jinja template features **To Reproduce** attempt to set `--env-token-name`...
it would be great if yaml formatted openapi files was natively supported instead of having to convert them.
when using some swagger apis the operationid can have long paths ([example](https://gist.github.com/ITJamie/c5dd1ff2480b5985428e742d6adeff53) ) eg `"operationId": "cmk.gui.plugins.openapi.endpoints.notification_rules.show_rules",` this was creating service functions with slightly unreadable names: eg:`def cmkguipluginsopenapiendpointsnotification_rulesshow_rules` by patching `openapi_python_generator/language_converters/python/common.py`...
**Describe the bug** OpenAPI v3.0.3 file has an error and client not generated **To Reproduce** The file [openapi.json](https://github.com/MarcoMuellner/openapi-python-generator/files/14617964/openapi.json) is from https://editor.swagger.io/ (File | Convert and save as JSON). It has...
**Describe the bug** The formatting of the generated code fails because "black" is considering it as not parseable. **To Reproduce** Steps to reproduce the behavior: 1. Call `openapi-python-generator xyz.json output`...
trigger swagger fragment ```json "Ans_UserDTO_Union_BError__NoneType__": { "properties": { "errors": { "anyOf": [ { "items": { "anyOf": [ { "$ref": "#/components/schemas/BError" }, { "type": "null" } ] }, "type": "array" },...
**Describe the bug** With other generators, spaces in enum values work perfectly fine. But with `openapi-python-generator`, spaces are replaced by underscores. This causes the generated client to be incompatible with...