You signed in with another tab or window. Reload to refresh your session.You signed out in another tab or window. Reload to refresh your session.You switched accounts on another tab or window. Reload to refresh your session.Dismiss alert
I think a contributing factor is the fact that there is no easy way to set a validation chain to be isFoo()orisBar(), you have to define separate chains for each case using oneOf. But that's a topic for a different issue.
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: