Skip to content

Commit bff4ef4

Browse files
author
GitHub
committed
chore: prepare release 0.20.0
1 parent 3ebad69 commit bff4ef4

File tree

3 files changed

+16
-11
lines changed

3 files changed

+16
-11
lines changed

Diff for: .changeset/const_values_are_now_validated_at_runtime.md

-10
This file was deleted.

Diff for: CHANGELOG.md

+15
Original file line numberDiff line numberDiff line change
@@ -13,6 +13,21 @@ 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-04-22)
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+
### Features
28+
29+
- allow Ruff 0.4 (#1031)
30+
1631
## 0.19.1 (2024-03-27)
1732

1833
### Features

Diff for: 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)