Validation breaks when using anyOf
or oneOf
and the root schema has an $id
#2471
Closed
3 tasks done
Labels
Prerequisites
Description
Both live validation and regular validation break if you supply a schema that has an
$id
and contains ananyOf
oroneOf
property.It breaks the global AJV instance irreversibly, because the validator won't work in general for forms with the same
$id
that don't normally create this bug unless you refresh the page.Steps to Reproduce
$id
and containsanyOf
oroneOf
Expected behavior
Here's an example without the
$id
, and validation is working.Actual behavior
Here's an example with the
$id
. Notice that validation no longer works. If you maintain the$id
, the validator still won't work, even if you remove theanyOf
fieldVersion
3.0.0. I think this bug also existed in 2.5
The text was updated successfully, but these errors were encountered: