openapi-python-client
openapi-python-client copied to clipboard
Generate modern Python clients from OpenAPI
**Describe the bug** ```json "responses": { "400": { "description": "There was a problem with the data sent with the request.", "content": { "application/json": {}, "application/xml": {} } } } ```...
This PR contains the following updates: | Package | Type | Update | Change | |---|---|---|---| | [actions/download-artifact](https://redirect.github.com/actions/download-artifact) | action | major | `v6.0.0` -> `v7.0.0` | | [actions/upload-artifact](https://redirect.github.com/actions/upload-artifact) |...
This PR contains the following updates: | Update | Change | |---|---| | lockFileMaintenance | All locks refreshed | 🔧 This Pull Request updates lock files to use the latest...
**Describe the bug** "empty" default values for optional fields throw an error. `swagger-parser` explicitly allows these (even though they are technically out-of-spec) by converting them silently to `null`. So, there...
Lazy imports of models aren't sorted, which causes them to be unstable and change from run to run. This is distracting in situations where you have a CI action automatically...
**Describe the bug** I stumbled on a weirdly specific bug that causes the generator to attempt to generate duplicate models. Apparently we need: - a OneOf type (A), which references...
Thanks for this wonderful library! It's been SO helpful :) **Describe the bug** The client args in generated methods (Client vs AuthenticatedClient) don't match those described by security in the...
**Describe the bug** I tired to use openapi-python-client to generate API wrapper for some Norwegian time tracking system (api.tidsbanken.net/developer.tidsbanken.net). Some api call `https://api.tidsbanken.net/ansatt/ansatt?%24select=Id&%24top=3 ` (ansatt = worker) returns: ``` b'{"@odata.context":"https://api.tidsbanken.net/ansatt/$metadata#Ansatt(Id)","value":[{"Id":1},{"Id":4},{"Id":5}]}'...
Building on https://github.com/openapi-generators/openapi-python-client/pull/1214, this allows customization of string enumerations in exactly the same way as integer enumerations.
This PR modifies `openapi-python-client` to recognize multiple media types in OpenAPI response objects and to differentially parse HTTP responses based on their `Content-Type` header values. (Today, it generates code for...