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 enum validation #50

Open
yury-palyanitsa opened this issue Oct 30, 2024 · 0 comments
Open

Fix enum validation #50

yury-palyanitsa opened this issue Oct 30, 2024 · 0 comments
Assignees
Labels
bug Something isn't working

Comments

@yury-palyanitsa
Copy link
Collaborator

yury-palyanitsa commented Oct 30, 2024

Current enum validation is limited to scalar types while enum is a constant value validated against the type. To properly support validation with enum, need to validate enum against the type and validate value against the enum, if present, bypassing validation against the restrictions.

This will fix enum validation of unions, arrays and objects.

@yury-palyanitsa yury-palyanitsa added the bug Something isn't working label Oct 30, 2024
@yury-palyanitsa yury-palyanitsa self-assigned this Oct 30, 2024
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

No branches or pull requests

1 participant