From bdbc1fb7f8ccbb22a2c69cd4344ea8fb0a551a3d Mon Sep 17 00:00:00 2001 From: GitHub Date: Sat, 18 May 2024 19:47:14 +0000 Subject: [PATCH] chore: prepare release 0.20.0 --- ...nst_values_are_now_validated_at_runtime.md | 10 ------ ...required_properties_in_multipart_bodies.md | 10 ------ .changeset/switch_yaml_parsing_to_12.md | 11 ------- CHANGELOG.md | 32 +++++++++++++++++++ pyproject.toml | 2 +- 5 files changed, 33 insertions(+), 32 deletions(-) delete mode 100644 .changeset/const_values_are_now_validated_at_runtime.md delete mode 100644 .changeset/fix_nullable_and_required_properties_in_multipart_bodies.md delete mode 100644 .changeset/switch_yaml_parsing_to_12.md diff --git a/.changeset/const_values_are_now_validated_at_runtime.md b/.changeset/const_values_are_now_validated_at_runtime.md deleted file mode 100644 index 0987d18ce..000000000 --- a/.changeset/const_values_are_now_validated_at_runtime.md +++ /dev/null @@ -1,10 +0,0 @@ ---- -default: major ---- - -# `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! diff --git a/.changeset/fix_nullable_and_required_properties_in_multipart_bodies.md b/.changeset/fix_nullable_and_required_properties_in_multipart_bodies.md deleted file mode 100644 index 06c4ea12e..000000000 --- a/.changeset/fix_nullable_and_required_properties_in_multipart_bodies.md +++ /dev/null @@ -1,10 +0,0 @@ ---- -default: patch ---- - -# 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. diff --git a/.changeset/switch_yaml_parsing_to_12.md b/.changeset/switch_yaml_parsing_to_12.md deleted file mode 100644 index 44d945ad7..000000000 --- a/.changeset/switch_yaml_parsing_to_12.md +++ /dev/null @@ -1,11 +0,0 @@ ---- -default: major ---- - -# 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! diff --git a/CHANGELOG.md b/CHANGELOG.md index 18722b79d..e14f086cb 100644 --- a/CHANGELOG.md +++ b/CHANGELOG.md @@ -13,6 +13,38 @@ Programmatic usage of this project (e.g., importing it as a Python module) and t 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). +## 0.20.0 (2024-05-18) + +### 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. + ## 0.19.1 (2024-03-27) ### Features diff --git a/pyproject.toml b/pyproject.toml index b91ba6e8d..6c9c339f3 100644 --- a/pyproject.toml +++ b/pyproject.toml @@ -18,7 +18,7 @@ dependencies = [ "typing-extensions>=4.8.0,<5.0.0", ] name = "openapi-python-client" -version = "0.19.1" +version = "0.20.0" description = "Generate modern Python clients from OpenAPI" keywords = [ "OpenAPI",