-
Notifications
You must be signed in to change notification settings - Fork 935
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
when
and concat
break preceding oneOf
#473
Comments
Debugged it a bit further, this should be equivalent to:
|
when
breaks preceding oneOf
when
breaks preceding concat
/oneOf
when
breaks preceding concat
/oneOf
when
and concat
break preceding oneOf
Perhaps this is already fixed by #444. |
It's not fixed at head. Here's a failing test case to reproduce:
Probably the Let me know if you want me to send a PR. |
@Philipp91 Your fix looks solid. Are you going to push it into the main Yup repo? edit: Oh, I see you opened a PR and they are dragging their feet approving it. |
fix: jquense#473 make concat compatible with (not)oneOf
The last one with
validate()
throws "ValidationError: this must be one of the following values: ". There are no values listed. Seems likethis.schema._whitelist
is empty.The text was updated successfully, but these errors were encountered: