Skip to content

Commit ef0ee29

Browse files
Release 0.24.1
1 parent 5da0fd0 commit ef0ee29

File tree

3 files changed

+19
-12
lines changed

3 files changed

+19
-12
lines changed

.changeset/always_parse_ref_as_a_reference.md

-11
This file was deleted.

CHANGELOG.md

+18
Original file line numberDiff line numberDiff line change
@@ -13,6 +13,24 @@ 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.24.1 (2025-03-15)
17+
18+
### Features
19+
20+
- allow Ruff to 0.10 (#1220)
21+
- allow Ruff 0.11 (#1222)
22+
- Allow any `Mapping` in generated `from_dict` functions (#1211)
23+
24+
### Fixes
25+
26+
#### Always parse `$ref` as a reference
27+
28+
If additional attributes were included with a `$ref` (for example `title` or `description`), the property could be
29+
interpreted as a new type instead of a reference, usually resulting in `Any` in the generated code.
30+
Now, any sibling properties to `$ref` will properly be ignored, as per the OpenAPI specification.
31+
32+
Thanks @nkrishnaswami!
33+
1634
## 0.24.0 (2025-03-03)
1735

1836
### Breaking Changes

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.24.0"
21+
version = "0.24.1"
2222
description = "Generate modern Python clients from OpenAPI"
2323
keywords = [
2424
"OpenAPI",

0 commit comments

Comments
 (0)