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

fix: Correct schema test assertion after Pydantic update. #52

Merged
merged 3 commits into from
Dec 3, 2024

Conversation

mike-oakley
Copy link
Owner

pydantic/pydantic#10692 makes the schema generation from Pydantic correct from an OpenAPI perspective. This change removes the use of enum and const together and ensures they are mutually exclusive. This change corrects the schema test assertion to match this logic.

@mike-oakley mike-oakley added the bug Something isn't working label Dec 3, 2024
@mike-oakley mike-oakley merged commit 5b4fe4e into main Dec 3, 2024
7 checks passed
@mike-oakley mike-oakley deleted the u/mike/fix-schema-validation-test branch December 3, 2024 10:04
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
bug Something isn't working
Projects
None yet
Development

Successfully merging this pull request may close these issues.

1 participant