diff --git a/.changeset/fix-models-enums-lists.md b/.changeset/fix-models-enums-lists.md deleted file mode 100644 index 50b7671f3..000000000 --- a/.changeset/fix-models-enums-lists.md +++ /dev/null @@ -1,11 +0,0 @@ ---- -default: patch ---- - -# 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. diff --git a/CHANGELOG.md b/CHANGELOG.md index 5f2e23582..f91708f48 100644 --- a/CHANGELOG.md +++ b/CHANGELOG.md @@ -13,6 +13,18 @@ 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.2 (2025-03-22) + +### 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. + ## 0.24.1 (2025-03-15) ### Features diff --git a/pyproject.toml b/pyproject.toml index 450a8a429..263194144 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.1" +version = "0.24.2" description = "Generate modern Python clients from OpenAPI" keywords = [ "OpenAPI",