openapi-generators / openapi-python-client

Generate modern Python clients from OpenAPI
MIT License
1.28k stars 197 forks source link

chore: prepare release 0.19.1 #1015

Closed dbanty closed 6 months ago

dbanty commented 6 months ago

This PR was created by Knope. Merging it will create a new release

Features

Add config option to override content types

You can now define a content_type_overrides field in your config.yml:

content_type_overrides:
  application/zip: application/octet-stream

This allows openapi-python-client to generate code for content types it doesn't recognize.

PR #1010 closes #810. Thanks @gaarutyunov!

Fixes

Add aliases to Client for pyright

This should resolve incompatibilities between the generated Client class and the pyright type checker.

PR #1009 closes #909. Thanks @patrick91!