OpenDataServices / sphinxcontrib-opendataservices-jsonschema

https://sphinxcontrib-opendataservices-jsonschema.readthedocs.io/en/latest/
Other
3 stars 0 forks source link

schemas with external refs with components - but then rendered with external refs not allowed? Crash! #44

Open odscjames opened 2 years ago

odscjames commented 2 years ago

eg

"$ref": "components.json#/definitions/pet"

To see the crash, edit tests/examples/basic-externalrefs/index.rst.

jsonref.JsonRefError: Unresolvable JSON pointer: '/definitions/pet'

It's understandable - when no external refs are allowed {} is just put in the schema, and indeed that pointer is missing from {}!