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
Validation in version 1.x return sub errors for keyword oneOf, but version 2.x return only The data should match exactly one schema. Keyword anyOf works correctly with sub errors in both versions. I think both keywords oneOf and anyOf should work similarly.
Validation in version 1.x return sub errors for keyword
oneOf
, but version 2.x return onlyThe data should match exactly one schema
. KeywordanyOf
works correctly with sub errors in both versions. I think both keywordsoneOf
andanyOf
should work similarly.See examples bellow.
Details
Examples for reproduce:
Example to reproduce issue in version 1.1.0
Example to reproduce issue in version 2.2.0
Output in version 1.1.0:
Wrong output without sub errors in version 2.2.0:
If I try it in with
anyOf
keyword in version 2.x output is correct:Example with anyOf in version 2.2.0
Output in version 2.2.0 for
anyOf
:The text was updated successfully, but these errors were encountered: