openapi-python-client icon indicating copy to clipboard operation
openapi-python-client copied to clipboard

Generate modern Python clients from OpenAPI

Results 211 openapi-python-client issues
Sort by recently updated
recently updated
newest added

This is a naive attempt at dynamically avoiding name collisions between the generated name for a Schema object's enum property and the name of another, user-defined, Schema type. Pros: All...

**Describe the bug** I tried to parse the v3 openapi specification as can be downloaded here https://apidocs.wyscout.com/ I ran ``` poetry run openapi-python-client generate --path path_to_file ``` It worked halfway....

**Describe the bug** While generating a client for my openapi.json file, the script crashes with internal errors. The problem seems to be related to a parameter defined in my `component/parameters`...

Fixes #1123. Details are as described in the changeset. This is a breaking change only in cases where the previous logic was producing an unambiguously wrong result. That is, in...

This more fully fixes https://github.com/openapi-generators/openapi-python-client/issues/219, and supersedes https://github.com/openapi-generators/openapi-python-client/pull/717. Any valid discriminator definition as described in [OpenAPI 3.1.0](https://spec.openapis.org/oas/v3.1.0.html#discriminator-object) should work correctly with these changes, including: * Discriminators with a `mapping` that...

**Describe the bug** When the generator creates a new Python type to represent a schema property's `enum` type it can sometimes get unlucky by generating the name of a user-defined...

**Describe the bug** I am generating a Python Client using the OpenAPI model of Netbox 3.6.9 (with a few plugins pre-installed). This schema contains for example a model `VLAN` and...

🐞bug

See: https://github.com/openapi-generators/openapi-python-client/issues/1163 This is a very dirty draft using a global variable to demonstrate a potential fix. I am not yet familiar with the codebase so this PR is (for...

The last time this idea came up (https://github.com/openapi-generators/openapi-python-client/issues/743), @dbanty felt that there wasn't a compelling reason to switch from `attrs`. I decided anyway to see how much of a lift...

**Describe the bug** `NoneProperty.build` and `FileProperty.build` _do_ have logic to detect if a default other than None was provided for a null property, or if any default was provided for...