Releases: openapi-generators/openapi-python-client
Releases · openapi-generators/openapi-python-client
0.11.1 - 2022-01-29
0.11.0 - 2022-01-18
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 nameddatetime
will now be nameddatetime_
.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 - 2021-12-18
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 - 2021-10-31
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 - 2021-10-26
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 _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 - 2021-09-25
0.10.4 - 2021-09-05
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!
0.10.3 - 2021-08-16
Features
- Expose
python_identifier
andclass_name
functions to custom templates to rename with the same behavior as the parser.
Fixes
0.10.2 - 2021-08-15
Features
- Allow path parameters to be positional args [#429 & #464]. Thanks @tsotnikov!
- Include both
UNSET
andNone
static types for nullable or optional query params [#421, #380, #462]. Thanks @forest-benchling! - Allow allOf enums to be subsets of one another or their base types [#379, #423, #461]. Thanks @forest-benchling! (#461)
Fixes
0.10.1 - 2021-07-10
Fixes
- Support multipart requests with type: array [#452 & #451]. Thanks @csymeonides-mf @slamora and @dpursehouse