Skip to content

Commit 7af00ce

Browse files
dbantyGitHub
and
GitHub
authored
chore: prepare release 0.20.0 (#1032)
This PR was created by Knope. Merging it will create a new release ### Breaking Changes #### `const` values in responses are now validated at runtime Prior to this version, `const` values returned from servers were assumed to always be correct. Now, if a server returns an unexpected value, the client will raise a `ValueError`. This should enable better usage with `oneOf`. PR #1024. Thanks @peter-greenatlas! #### Switch YAML parsing to 1.2 This change switches the YAML parsing library to `ruamel.yaml` which follows the YAML 1.2 specification. [There are breaking changes](https://yaml.readthedocs.io/en/latest/pyyaml/#defaulting-to-yaml-12-support) from YAML 1.1 to 1.2, though they will not affect most use cases. PR #1042 fixes #1041. Thanks @rtaycher! ### Features - allow Ruff 0.4 (#1031) ### Fixes #### Fix nullable and required properties in multipart bodies Fixes #926. > [!WARNING] > This change is likely to break custom templates. Multipart body handling has been completely split from JSON bodies. Co-authored-by: GitHub <[email protected]>
1 parent 84d9844 commit 7af00ce

5 files changed

+33
-32
lines changed

.changeset/const_values_are_now_validated_at_runtime.md

-10
This file was deleted.

.changeset/fix_nullable_and_required_properties_in_multipart_bodies.md

-10
This file was deleted.

.changeset/switch_yaml_parsing_to_12.md

-11
This file was deleted.

CHANGELOG.md

+32
Original file line numberDiff line numberDiff line change
@@ -13,6 +13,38 @@ Programmatic usage of this project (e.g., importing it as a Python module) and t
1313

1414
The 0.x prefix used in versions for this project is to indicate that breaking changes are expected frequently (several times a year). Breaking changes will increment the minor number, all other changes will increment the patch number. You can track the progress toward 1.0 [here](https://github.com/openapi-generators/openapi-python-client/projects/2).
1515

16+
## 0.20.0 (2024-05-18)
17+
18+
### Breaking Changes
19+
20+
#### `const` values in responses are now validated at runtime
21+
22+
Prior to this version, `const` values returned from servers were assumed to always be correct. Now, if a server returns
23+
an unexpected value, the client will raise a `ValueError`. This should enable better usage with `oneOf`.
24+
25+
PR #1024. Thanks @peter-greenatlas!
26+
27+
#### Switch YAML parsing to 1.2
28+
29+
This change switches the YAML parsing library to `ruamel.yaml` which follows the YAML 1.2 specification.
30+
[There are breaking changes](https://yaml.readthedocs.io/en/latest/pyyaml/#defaulting-to-yaml-12-support) from YAML 1.1 to 1.2,
31+
though they will not affect most use cases.
32+
33+
PR #1042 fixes #1041. Thanks @rtaycher!
34+
35+
### Features
36+
37+
- allow Ruff 0.4 (#1031)
38+
39+
### Fixes
40+
41+
#### Fix nullable and required properties in multipart bodies
42+
43+
Fixes #926.
44+
45+
> [!WARNING]
46+
> This change is likely to break custom templates. Multipart body handling has been completely split from JSON bodies.
47+
1648
## 0.19.1 (2024-03-27)
1749

1850
### Features

pyproject.toml

+1-1
Original file line numberDiff line numberDiff line change
@@ -18,7 +18,7 @@ dependencies = [
1818
"typing-extensions>=4.8.0,<5.0.0",
1919
]
2020
name = "openapi-python-client"
21-
version = "0.19.1"
21+
version = "0.20.0"
2222
description = "Generate modern Python clients from OpenAPI"
2323
keywords = [
2424
"OpenAPI",

0 commit comments

Comments
 (0)