Open dinar007007 opened 9 months ago
The referenced document must also be a valid json schema file and common.json is not (ie "myObject" is not a valid property of the root object)... you'd need to put the collection of definitions in "definitions":
{
"definitions": {
"myObject": {
...
}
}
}
and reference it via "./common.json#/definitions/myObject"
Hello!
The error occurs if a external file contains a ref to an object from the same external file. Error text - System.InvalidOperationException: Could not resolve the path '#/myInt' Examples:
njsonschema.json
common.json
If I add the following definition to the njsonschema.json file, then the schema is read successfully
I don't understand something in the JSON schema standard or, for now, such resolution of refs is not supported in NJsonSchema?