Openapi-python-client

Latest version: v0.19.1

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

Scan your dependencies

Page 6 of 12

0.11.0

Breaking Changes

- Minimum required `attrs` version in generated clients is now 21.3.0.
- Python 3.6 is officially not supported. The minimum version has been updated to reflect this.
- Validation of OpenAPI documents is now more strict.
- Model names generated from OpenAPI names with periods (`.`) in them will be different.
- Header values will be explicitly transformed or omitted instead of blindly passed to httpx as-is.
- `datetime` is now considered a reserved word everywhere, so any properties which were named `datetime` will now be named `datetime_`.
- `File` uploads can now only accept binary payloads (`BinaryIO`).

Features

- Don't set a cap on allowed `attrs` version.
- use poetry-core as build backend in generated clients [565]. Thanks fabaff!
- Use httpx.request to allow bodies for all type of requests [545, 547]. Thanks MalteBecker!

Fixes

- OpenAPI schema validation issues (426, 568). Thanks p1-ra!
- treat period as a delimiter in names (546). Thanks alexifm!
- Non-string header values [552, 553, 566]. Thanks John98Zakaria!
- Generate valid code when a property of a model is named "datetime" [557 & 558]. Thanks kmray!
- Multipart uploads for httpx >= 0.19.0 [508, 548]. Thanks skuo1-ilmn & kairntech!

0.10.8

Features

- New and improved docstrings in generated functions and classes [503, 505, 551]. Thanks rtaycher!
- Support httpx 0.21.\* (537)

Fixes

- Basic types as JSON bodies and responses [487 & 550]. Thanks Gelbpunkt!
- Relative paths to config files [538 & 544]. Thanks to motybz, MalteBecker, & abhinav-cashify!

0.10.7

Fixes

- SSL verify argument to async clients [533 & 510]. Thanks fsvenson and mvaught02!
- Remove unused CHANGELOG from generated setup.py [529]. Thanks johnthagen!

0.10.6

Features

- Improve error messages related to invalid arrays and circular or recursive references [519].
- Add httpx 0.20.\* support [514].

Fixes

- Use isort "black" profile in generated clients [523]. Thanks johnthagen!
- setup.py should generate importable packages named <project>\_client [492, 520, 521]. Thanks tedo-benchling & Leem0sh!
- Allow None in enum properties [504, 512, 516]. Thanks juspence!
- properly support JSON OpenAPI documents and config files [488, 509, 515]. Thanks tardyp and Gelbpunkt!

0.10.5

Features

- Add verify_ssl option to generated Client, allowing users to ignore or customize ssl verification (497). Thanks rtaycher!

Fixes

- Properly label a path template issue as a warning (494). Thanks chamini2!
- Don't allow mixed types in enums.
- Don't crash when a null is in an enum (500). Thanks juspence!

0.10.4

Features

- Allow customization of post-generation steps with the `post_hooks` config option.
- Allow httpx 0.19.\* (481)

Fixes

- Don't crash the generator when one of the post-generation hooks is missing [fixes 479]. Thanks chamini2 and karolzlot!

Page 6 of 12

© 2024 Safety CLI Cybersecurity Inc. All Rights Reserved.