Openapi-python-client

Latest version: v0.21.6

Safety actively analyzes 675388 Python packages for vulnerabilities to keep your Python projects secure.

Scan your dependencies

Page 4 of 13

0.16.0

Breaking Changes

Switch from Black to Ruff for formatting

`black` is no longer a runtime dependency, so if you have them set in custom `post_hooks` in a config file, you'll need to make sure they're being installed manually. [`ruff`](https://docs.astral.sh/ruff) is now installed and used by default instead.

Use Ruff instead of isort + autoflake at runtime

`isort` and `autoflake` are no longer runtime dependencies, so if you have them set in custom `post_hooks` in a config file, you'll need to make sure they're being installed manually. [`ruff`](https://docs.astral.sh/ruff) is now installed and used by default instead.

Features

Support all `text/*` content types in responses

Within an API response, any content type which starts with `text/` will now be treated the same as `text/html` already was—they will return the `response.text` attribute from the [httpx Response](https://www.python-httpx.org/api/#response).

Thanks to fdintino for the initial implementation, and thanks for the discussions from kairntech, rubenfiszel, and antoneladestito.

Closes 797 and 821.

Support `application/octet-stream` request bodies

Endpoints that accept `application/octet-stream` request bodies are now supported using the same `File` type as octet-stream responses.

Thanks to kgutwin for the implementation and rtaycher for the discussion!

PR 899 closes 588

Fixes

Remove useless `pass` statements from generated code

0.15.2

Features

support httpx 0.25 (854)

Support content-type with attributes (655, 809, 858). Thanks sherbang!

0.15.1

Features

Upgrade internal Pydantic use to v2. Thanks KristinnVikar! (779)

Fixes

Naming conflicts when properties are named "field" or "define" (781, 793). Thanks david-dotorigin

0.15.0

Breaking Changes

0.14.1

Fixes

- Allow parameters named "client" and "url" [758, 762, 765]. Thanks truenicoco & juanber84!

0.14.0

Breaking Changes

- Drop support for Python 3.7, put minimum version limit on Black (754)

Features

- Better typing (mypy) support for `Unset` (e.g., using if statements to check type) [714, 752]. Thanks taasan & mcclurem! (752)

Fixes

- pyproject_no_poetry.toml.jinja template can be used to configure black and isort (closes 750) (751)

Page 4 of 13

© 2024 Safety CLI Cybersecurity Inc. All Rights Reserved.