Open OhRickCode opened 7 years ago
This is currently not supported bacause "definitions" is a Dictionary<string, JsonSchema4> object and your schema cannot be correctly deserialized... i dont know if we can fix this because .net is fully typed and njs requires jsonschema4 instances for refs
Ah - ok. Well, I will have to go with the work-around of flattening my schema structure.
Cheers, Ulric.
Please try again with the latest version - there have been many fixes for $refs.. Maybe it now works?
Hello Rico. Thank you for all the work you have done on this. It is much appreciated.
But, alas, I have encountered a possible bug. (These things are sent to test us all.)
Using this code:
If I set testSchema to this:
I get this exception:
InvalidOperationException: Could not resolve the path '#/definitions/lists/PropertiesObject'.
But if I flatten the schema a little (removing "lists"):
then the schema is parsed successfully - even though there are still nested definitions in the schema. Hopefully the above code will reproduce the problem for you.
Thanks for all the good work. Ulric.