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

Add same null-to-string fix for enum case #455

Merged
merged 1 commit into from
May 21, 2024

Conversation

1000TurquoisePogs
Copy link
Member

This PR serves the same purpose as in #450 but that PR missed the enum case.
The enum case of schema validation currently compares the value you have against all possible values.

So, to fix it, when entering the enum case I check if the type should be string but is in fact null. If so, I substitute the value to be tested with an empty string, test it against the enum list, and then perform cleanup.

@1000TurquoisePogs 1000TurquoisePogs merged commit 72ed1e0 into v2.x/rc May 21, 2024
8 of 9 checks passed
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
None yet
Projects
Status: Done
Development

Successfully merging this pull request may close these issues.

2 participants