openapi-python-client
openapi-python-client copied to clipboard
Generate modern Python clients from OpenAPI
**Describe the bug** While trying to generate the OpenAPI client, I come across a bug that not only modifies several files unnecessarily but also displays a warning message about endpoint...
**Describe the bug** Form-style submissions to endpoints that support multiple different content types are missing the necessary "boundary" attribute on the Content-Type header. ``` POST https://.../items HTTP/1.1 Host: ... Accept:...
**Describe the bug** When attempting to generate the client for an endpoint containing a route with a default value represented by a Pydantic model, the client generation fails. Specifically, the...
Allow to override tag as the grouping mechanism per endpoint using the 'x-code-tag' property on the operation
**Describe the bug** In the end-to-end tests, the file `golden-record/my_test_api_client/models/body_upload_file_tests_upload_post.py` passes type checking, but would fail in a runtime call in a call to `BodyUploadFileTestsUploadPost.to_multipart()` at the following point: ```python...
**Describe the bug** Running ``` openapi-python-client generate --url https://raw.githubusercontent.com/wikimedia/mediawiki-extensions-Wikibase/e45d4f725e25a95ec2b034238fd3736f19053a16/repo/rest-api/specs/openapi.json ``` gives me the error ``` Error(s) encountered while generating, client was not created Invalid YAML from provided source: while scanning...
**Describe the bug** The parameter name='IF-MODIFIED-SINCE' produces an error 'Union[Unset, datetime.date] is not allowed in header', which prevents the endpoint from being generated. **OpenAPI Spec File** https://docs.developers.clio.com/openapi.json **Desktop (please complete...
I have a generated client code for FastAPI multi-file upload endpoint which I'm using like this: ``` file_names = ['fd1.py', 'fd2.py'] files = [] for f in file_names: with open(f,...
**Describe the bug** Schema definition in `components` of combined schemas are failing to be parsed, with the following error: > Unable to parse this part of your OpenAPI document: :...
**Describe the bug** The generator reports validation errors on regarding the OAuth2PasswordRequestForm type: ``` components.schemas.Body_login_auth_login_post.Reference.$ref Field required [type=missing, input_value={'properties': {'grant_ty..._login_auth_login_post'}, input_type=dict] For further information visit https://errors.pydantic.dev/2.3/v/missing components.schemas.Body_login_auth_login_post.Schema.properties.grant_type.Reference.$ref Field required [type=missing,...