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
Using oneOf together with checkExact causes Unknown Field errors #1269
Labels
Comments
I think a contributing factor is the fact that there is no easy way to set a validation chain to be |
|
2 tasks
Sign up for free
to join this conversation on GitHub.
Already have an account?
Sign in to comment
Describe the bug
When
oneOf
is used together withcheckExact
, the fields specified insideoneOf
are not recognized.To Reproduce
oneOf
array.checkExact
as the last validation chain.oneOf
array.https://runkit.com/ansis100/6597bf964216370008d1c1c6
Expected behavior
All the fields contained in
oneOf
are recognized bycheckExact
as allowed fields.Current behavior
checkExact
returns anUnknown field
error for any fields contained inoneOf
.Environment:
The text was updated successfully, but these errors were encountered: