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

**Describe the bug** 3 validation errors for OpenAPI paths.`/v2/openapi.json`.get.responses.200.other.description Field required [type=missing, input_value={'content': {'application/json': {'schema': {}}}}, input_type=dict] For further information visit https://errors.pydantic.dev/2.11/v/missing paths.`/v2/openapi.yml`.get.responses.200.other.description Field required [type=missing, input_value={'content': {'application...y', 'type': 'string'}}}},...

This addresses: https://github.com/openapi-generators/openapi-python-client/issues/652 Even with `use_path_prefixes_for_title_model_names` set to `true`, duplicate model class names can occur. By default, when duplicates are encountered they will be skipped. This can cause error when...

**Describe the bug** Similar to previous issues about multiple content types support like https://github.com/openapi-generators/openapi-python-client/issues/453 or https://github.com/openapi-generators/openapi-python-client/issues/1004 For a single endpoint, the same error code can be returned by different piece...

When the OpenAPI spec contains an optional enum property with a default value, the default value is ignored and is always set to `UNSET` in the generated client (current behavior)....

Consider the following schema definition (which passes validation with the `openapitools/openapi-generator-cli` container image): ``` // [...] "deviceEncryptionKeyScheme": { "$ref": "#/components/schemas/DeviceEncryptionKeyScheme", "nullable": true //

C:\Users\admin>openapi-python-client --version openapi-python-client version: 0.24.3 C:\Users\admin>openapi-python-client --install-completion Shell cmd is not supported. C:\Users\admin>openapi-python-client --show-completion Shell cmd not supported.

**Describe the bug** # LOW PRIORITY If an API provides an "upload_file" endpoint, when using async, one has to use an asynchronous way to open a file. Using anyio from...

**Describe the bug** I am trying to generate a client for an API with an clientCredentials oauth flow, but the generated client doesn't seem to manage the authentication at all:...

**Describe the bug** According to the openapi 3.1 specification, tuples should be modeled using the `"prefixItems"` field with the `"items"` field being set to `false` ([spec](https://json-schema.org/understanding-json-schema/reference/array#additionalitems)). However this causes a...

**Describe the bug** Fields marked as `readOnly` in a schema in the OpenAPI document are not set as optional in the generated model. This makes them required in the body...