json-schema-validator icon indicating copy to clipboard operation
json-schema-validator copied to clipboard

$recursiveRef Incorrect For Draft 2019-09

Open tomdeering-wf opened this issue 4 years ago • 1 comments

It looks like $recursiveRef does not correctly resolve to a $recursiveAnchor with Draft 2019-09. Consider the 2019 metaschema with its vocabulary references inlined into the schema (the recommended way using $defs):

2019-09.txt (.txt extension because GitHub doesn't support .json)

Attempting to load this schema yields the following exception: com.networknt.schema.JsonSchemaException: anyOf/$ref: Reference #/$defs/simpleTypes cannot be resolved

But this $recursiveRef should resolve without issue.

tomdeering-wf avatar Feb 02 '22 19:02 tomdeering-wf

@tomdeering-wf We have a community PR to get the $recurisiveRef implemented but I am guessing there might be some gaps left. I am wondering if you could create a test case and debug into it to find the root cause and get it resolved. Thanks.

stevehu avatar Feb 15 '22 01:02 stevehu