From ef0ee29dc9ccb5c16b39338d4719252f543d52a3 Mon Sep 17 00:00:00 2001 From: "knope-bot[bot]" <152252888+knope-bot[bot]@users.noreply.github.com> Date: Sat, 15 Mar 2025 19:11:56 +0000 Subject: [PATCH] Release 0.24.1 --- .changeset/always_parse_ref_as_a_reference.md | 11 ----------- CHANGELOG.md | 18 ++++++++++++++++++ pyproject.toml | 2 +- 3 files changed, 19 insertions(+), 12 deletions(-) delete mode 100644 .changeset/always_parse_ref_as_a_reference.md diff --git a/.changeset/always_parse_ref_as_a_reference.md b/.changeset/always_parse_ref_as_a_reference.md deleted file mode 100644 index d25c6d70c..000000000 --- a/.changeset/always_parse_ref_as_a_reference.md +++ /dev/null @@ -1,11 +0,0 @@ ---- -default: patch ---- - -# Always parse `$ref` as a reference - -If additional attributes were included with a `$ref` (for example `title` or `description`), the property could be -interpreted as a new type instead of a reference, usually resulting in `Any` in the generated code. -Now, any sibling properties to `$ref` will properly be ignored, as per the OpenAPI specification. - -Thanks @nkrishnaswami! diff --git a/CHANGELOG.md b/CHANGELOG.md index 96fbb4e61..5f2e23582 100644 --- a/CHANGELOG.md +++ b/CHANGELOG.md @@ -13,6 +13,24 @@ 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.24.1 (2025-03-15) + +### Features + +- allow Ruff to 0.10 (#1220) +- allow Ruff 0.11 (#1222) +- Allow any `Mapping` in generated `from_dict` functions (#1211) + +### Fixes + +#### Always parse `$ref` as a reference + +If additional attributes were included with a `$ref` (for example `title` or `description`), the property could be +interpreted as a new type instead of a reference, usually resulting in `Any` in the generated code. +Now, any sibling properties to `$ref` will properly be ignored, as per the OpenAPI specification. + +Thanks @nkrishnaswami! + ## 0.24.0 (2025-03-03) ### Breaking Changes diff --git a/pyproject.toml b/pyproject.toml index 47426bfc3..450a8a429 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.24.0" +version = "0.24.1" description = "Generate modern Python clients from OpenAPI" keywords = [ "OpenAPI",