Skip to content

Commit aff1d26

Browse files
Release 0.24.2 (#1232)
> [!IMPORTANT] > Merging this pull request will create this release ## Fixes ### Make lists of models and enums work correctly in custom templates Lists of model and enum classes should be available to custom templates via the Jinja variables `openapi.models` and `openapi.enums`, but these were being passed in a way that made them always appear empty. This has been fixed so a custom template can now iterate over them. Closes #1188. Co-authored-by: knope-bot[bot] <152252888+knope-bot[bot]@users.noreply.github.com>
1 parent 1177cf7 commit aff1d26

File tree

3 files changed

+13
-12
lines changed

3 files changed

+13
-12
lines changed

.changeset/fix-models-enums-lists.md

-11
This file was deleted.

CHANGELOG.md

+12
Original file line numberDiff line numberDiff line change
@@ -13,6 +13,18 @@ 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.2 (2025-03-22)
17+
18+
### Fixes
19+
20+
#### Make lists of models and enums work correctly in custom templates
21+
22+
Lists of model and enum classes should be available to custom templates via the Jinja
23+
variables `openapi.models` and `openapi.enums`, but these were being passed in a way that made
24+
them always appear empty. This has been fixed so a custom template can now iterate over them.
25+
26+
Closes #1188.
27+
1628
## 0.24.1 (2025-03-15)
1729

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

0 commit comments

Comments
 (0)