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

Generate modern Python clients from OpenAPI

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

**Describe the bug** The names of apis are odd, having '_' in irregular and unpredictable places **To Reproduce** The following behavior can be observed using the `snake_case` function from utils:...

🐞bug

**Describe the bug** During the `black .` post hook, openapi-python-client throws : ``` openapi-python-client update --url someurl.com/openapi.json Updating my_project Error(s) encountered while generating, client was not created black failed Traceback...

🐞bug

**Describe the bug** I have a web API implementer with fastAPI. I have a function that make a POST request to the server I work with. This function returns dictionary...

🐞bug

I have Java OpenAPI server which provides an upload endpoint (POST) that expect as schema a FileRequest (` schema = @Schema(implementation = FileRequest.class)`) The FileRequest looks like: ``` @Value.Immutable @JsonDeserialize(builder...

🐞bug

When running openapi-python-client on the gti geofox api I get a lot of warnings: ``` $ openapi-python-client generate --url https://gti.geofox.de/v3/api-docs/public Generating open-api-definition-client Warning(s) encountered while generating. Client was generated, but...

🐞bug

**Is your feature request related to a problem? Please describe.** I have a 3rd party schema describing an API which returns a PDF file with `content` `application/pdf` **Describe the solution...

enhancement

See https://github.com/openapi-generators/openapi-python-client/discussions/578

🐞bug

Originally predicted in https://github.com/openapi-generators/openapi-python-client/issues/383#issuecomment-830839559 Since [`re.findall(rf"[^{DELIMITERS}]+", value)`](https://github.com/openapi-generators/openapi-python-client/blob/d8d9cecffe41c5dc1c43bc667598b90f0d9253ca/openapi_python_client/utils.py#L48) trims prefix and suffix `_` characters while generating python property identifiers, 2+ schema properties on a single model that differ only by such...

🐞bug
🥚breaking

**Describe the bug** If a `get` path has a parameter using `$ref` to point to `#/components/parameters`, the generated API lacks the corresponding `kwarg`. If one "hoists" the indirect parameter up...

🐞bug

**Is your feature request related to a problem? Please describe.** non-nullable read- and write-only fields are required only in either request or response objects. In the generated client they are...

enhancement