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
If I have a JSON schema where the properties of an object are referenced by $ref and there are additional validations on such properties, then JSON's which do not fulfill the additional validations are considered valid. I want to do this to keep duplications of JSON objects to a minimum.
Visual Code does state that the JSON is invalid.
I'm using draft-07 for validation and version 2.3.0.
Here is an example of my schema. The workaround is copying everything from improvementNumber to improvementNumberNonNegative to remove the $ref and then validation will hold.
If I have a JSON schema where the properties of an object are referenced by
$ref
and there are additional validations on such properties, then JSON's which do not fulfill the additional validations are considered valid. I want to do this to keep duplications of JSON objects to a minimum.Visual Code does state that the JSON is invalid.
I'm using
draft-07
for validation and version 2.3.0.Here is an example of my schema. The workaround is copying everything from
improvementNumber
toimprovementNumberNonNegative
to remove the$ref
and then validation will hold.This JSON must be considered invalid:
The text was updated successfully, but these errors were encountered: