Closed gersmann closed 1 year ago
Hi gersman.
What happens if you add a "type" keyword to your root object?
{
"$schema": "...",
"type": "object"
"definitions": ...
Hi @sagold, same problem unfortunately.
Hi Gersman,
within each, $ref resolution was not supported for root objects. With json-schema-library v7.3.1
this has been fixed and published.
Cheers, sagold
Hi @sagold, many thanks for the update. Tested it, and it works fine. On a related note, it looks as if getSchema
is currently still failing the ref
resolution, could there be a similar problem, does the schema need to resolve refs before getSchema
can work?
I will have a look
With json-schema-library v7.3.2
getSchema supports $ref resolution on root schemas.
Thanks a lot @sagold
Hi, thank you for your library, it is doing just what I need to. I just ran into a problem with definitions.
My schema:
Validating this with
gives me:
This seems to be a problem with definitions, are they not being resolved?