openapi-python-client
openapi-python-client copied to clipboard
Generate modern Python clients from OpenAPI
**Describe the bug** Pydantic V1 and V2 models co-existing is creating an issue with backwards compatibility. Please check the latest changes from fast api viz https://github.com/fastapi/fastapi/pull/14168 which create the models...
**Describe the bug** ``` Unable to process schema /components/schemas/ActualApprovement: Could not find reference in parsed models or enums Failure to process schema has resulted in the removal of: /components/schemas/ActualApprovement Reference(ref='#/components/schemas/backend__server__src__models__types__approvement__ApprovementStatus')...
**Describe the bug** Running `openapi-python-client generate --path api.yml` on the input file below fails with: ``` Generating /tmp/example-client Error(s) encountered while generating, client was not created ruff failed example_client/api/default/put_object.py:34:62: SyntaxError:...
Or if we could at least remove the warning `Unsupported content type application/x-ndjson`.
Fixes #1284
**Describe the bug** When generating classes from openapi.yaml with integers as keys (e.g. 200), I get the error: ``` paths./api/events.get.responses.200.[key] Input should be a valid string [type=string_type, input_value=200, input_type=int] For...
**Describe the bug** When using `allOf` with a nested `oneOf`, the code generator only processes the first schema in the `allOf` list and ignores the `oneOf` portion. Fields defined in...
**Describe the bug** The `³` character in string enum values does not get sanitized out before creating enum names, resulting in invalid generated code. **OpenAPI Spec File** ``` openapi: 3.0.0...
# Description Adds support for OpenAPI array parameters, especially regarding the `explode` and `style` attributes, and enhances validation and code generation for parameters in the generated client. The most significant...
**Describe the bug** If I add `docstrings_on_attributes: true` to my config, then `example` fields in my openapi schemaare removed entirely from the docstrings. The default behavior seems to be to...