openapi-python-client
openapi-python-client copied to clipboard
Generate modern Python clients from OpenAPI
Fixes #1120. There are two related changes here: First, when processing the anyOf/oneOf items in a union, check whether each item will generate a named Python class (i.e. is it...
This tool generates a `py.typed` file but does not follow the [associated export rules](https://github.com/microsoft/pyright/blob/main/docs/typed-libraries.md#library-interface), causing a `reportPrivateImportUsage` when one imports from the generated client.
Lovely package BTW! **Describe the bug** Code generation for parsing API response does not generate the code that creates the Python model after the response is completed. This happens when...
**Describe the bug** In some valid specs, the use of `anyOf`, `oneOf`, `nullable`, and/or `type` as a list, can cause generated class names to have unnecessary suffixes (and, sometimes, for...
**Describe the bug** When an object schema derives from another object schema using `allOf`, and redeclares a property that had an object type to use a different object type, the...
`openapi-python-client`: `0.21.4` Python: `3.10` OpenAPI spec version: `3.0.3` In OpenAPI specs where a property has the same name as the snake cased class name (in the example below, the snake...
It's not a bug, but a bit of a sharp edge. The mechanism employed by --overwrite is to essentially _rm -rf *_ So for instance in you're in your repo...
**Describe the bug** Version: 0.21.1 When I try to generate a client it fails with the following error: Error(s) encountered while generating, client was not created ruff failed rivery_scim_client/models/book.py:40:21: F821...
**Describe the bug** My understanding of allOf is that its supposed to recursively combine 2+ dictionaries and only fail if multiple types cant be satisfied(such as if the same path...
I am trying to generate a client for an OpenAPI JSON file but I am getting an error although Postman was able to generate a endpoints: "Error(s) encountered while generating,...