Skip to content

Commit ddbaf3c

Browse files
author
GitHub
committed
chore: prepare release 0.20.0
1 parent 9cbca04 commit ddbaf3c

File tree

4 files changed

+24
-22
lines changed

4 files changed

+24
-22
lines changed

.changeset/const_values_are_now_validated_at_runtime.md

-10
This file was deleted.

.changeset/switch_yaml_parsing_to_12.md

-11
This file was deleted.

CHANGELOG.md

+23
Original file line numberDiff line numberDiff line change
@@ -13,6 +13,29 @@ 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+
1639
## 0.19.1 (2024-03-27)
1740

1841
### 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)