Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

Release 0.21.6 #1139

Merged
merged 1 commit into from
Oct 20, 2024
Merged

Release 0.21.6 #1139

merged 1 commit into from
Oct 20, 2024

Conversation

knope-bot[bot]
Copy link
Contributor

@knope-bot knope-bot bot commented Oct 20, 2024

Important

Merging this pull request will create this release

Features

Add literal_enums config setting

Instead of the default Enum classes for enums, you can now generate Literal sets wherever enum appears in the OpenAPI spec by setting literal_enums: true in your config file.

literal_enums: true

Thanks to @emosenkis for PR #1114 closes #587, #725, #1076, and probably many more.
Thanks also to @eli-bl, @expobrain, @theorm, @chrisguillory, and anyone else who helped getting to this design!

Fixes

Use literal value instead of HTTPStatus enum when checking response statuses

Python 3.13 renamed some of the HTTPStatus enum members, which means clients generated with Python 3.13 may not work
with older versions of Python. This change stops using the HTTPStatus enum directly when checking response statuses.

Statuses will still be checked for validity at generation time, and transformed into HTTPStatus after being checked
at runtime.

This may cause some linters to complain.

@knope-bot knope-bot bot force-pushed the knope/release branch 6 times, most recently from 63f3766 to 8864a5f Compare October 20, 2024 22:29
@dbanty dbanty added this pull request to the merge queue Oct 20, 2024
Merged via the queue into main with commit 4c019d9 Oct 20, 2024
21 checks passed
@dbanty dbanty deleted the knope/release branch October 20, 2024 23:41
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.

Duplicate Key Error during parser/properties/enum
1 participant