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
Fixing this is not trivial - the problem is not only the complexity of traversing the schema, but deciding which references need to change - they may point to other files.
So if currently files are processed in isolation, they would have to be processed collectively to update the known references only (plus updating definitions may break some other dependencies of these schemas).
The good thing is that it is not necessary - they can just remain definitions - it is still supported in any draft. So the fix is to keep definitions as they are, without changing to $defs.
epoberezkin
added a commit
to ajv-validator/json-schema-migrate
that referenced
this issue
Feb 15, 2021
The migration changes
definitions
to$def
at the top, but it does not change the references.draft-04
migration to draft-2019-09
The text was updated successfully, but these errors were encountered: