Skip to content

Conversation

knope-bot[bot]
Copy link
Contributor

@knope-bot knope-bot bot commented Aug 26, 2025

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:

Closes #1271 and #832

Note

Custom template users: the endpoint.responses type has changed quite a bit. Check out #1303 for the changes.

@dbanty dbanty enabled auto-merge August 26, 2025 02:56
@dbanty dbanty added this pull request to the merge queue Aug 26, 2025
Merged via the queue into main with commit 655b218 Aug 26, 2025
21 checks passed
@dbanty dbanty deleted the knope/release branch August 26, 2025 03:01
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
None yet
Projects
None yet
Development

Successfully merging this pull request may close these issues.

Patterned (4XX) HTTP Status Codes not respected
1 participant