Skip to content

Commit 655b218

Browse files
Release 0.26.0 (#1306)
> [!IMPORTANT] > Merging this pull request will create this release ## Breaking Changes ### Change some union variant names When creating a union with `oneOf`, `anyOf`, or a list of `type`, the name of each variant used to be `type_{index}` where the index is based on the order of the types in the union. This made some modules difficult to understand, what is a `my_type_type_0` after all? It also meant that reordering union members, while not a breaking change to the API, _would_ be a breaking change for generated clients. Now, if an individual variant has a `title` attribute, that `title` will be used in the name instead. This is only an enhancement for documents which use `title` in union variants, and only a breaking change for _inline models_ (not `#/components/schemas` which should already have used more descriptive names). Thanks @wallagib for PR #962! ## Features ### Support patterned and default HTTP statuses HTTP statuses like `2XX` and `default` are now supported! A big thank you to: - @PSU3D0 for PR #973 (eons ago 😅) - @obs-gh-peterkolloch for PR #1300 - @goodsonjr for PR #1304 Closes #1271 and #832 > [!NOTE] > Custom template users: the `endpoint.responses` type has changed quite a bit. Check out #1303 for the changes. Co-authored-by: knope-bot[bot] <152252888+knope-bot[bot]@users.noreply.github.com>
1 parent f9f0ad0 commit 655b218

File tree

4 files changed

+36
-36
lines changed

4 files changed

+36
-36
lines changed

.changeset/change_some_union_variant_names.md

Lines changed: 0 additions & 18 deletions
This file was deleted.

.changeset/support_patterned_and_default_http_statuses.md

Lines changed: 0 additions & 17 deletions
This file was deleted.

CHANGELOG.md

Lines changed: 35 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -13,6 +13,41 @@ 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.26.0 (2025-08-26)
17+
18+
### Breaking Changes
19+
20+
#### Change some union variant names
21+
22+
When creating a union with `oneOf`, `anyOf`, or a list of `type`, the name of each variant used to be `type_{index}`
23+
where the index is based on the order of the types in the union.
24+
25+
This made some modules difficult to understand, what is a `my_type_type_0` after all?
26+
It also meant that reordering union members, while not a breaking change to the API, _would_ be a breaking change
27+
for generated clients.
28+
29+
Now, if an individual variant has a `title` attribute, that `title` will be used in the name instead.
30+
This is only an enhancement for documents which use `title` in union variants, and only a breaking change for
31+
_inline models_ (not `#/components/schemas` which should already have used more descriptive names).
32+
33+
Thanks @wallagib for PR #962!
34+
35+
### Features
36+
37+
#### Support patterned and default HTTP statuses
38+
39+
HTTP statuses like `2XX` and `default` are now supported!
40+
41+
A big thank you to:
42+
- @PSU3D0 for PR #973 (eons ago 😅)
43+
- @obs-gh-peterkolloch for PR #1300
44+
- @goodsonjr for PR #1304
45+
46+
Closes #1271 and #832
47+
48+
> [!NOTE]
49+
> Custom template users: the `endpoint.responses` type has changed quite a bit. Check out #1303 for the changes.
50+
1651
## 0.25.3 (2025-07-21)
1752

1853
### Features

pyproject.toml

Lines changed: 1 addition & 1 deletion
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.25.3"
21+
version = "0.26.0"
2222
description = "Generate modern Python clients from OpenAPI"
2323
keywords = [
2424
"OpenAPI",

0 commit comments

Comments
 (0)