docson
docson copied to clipboard
problem with $ref
This example from the json schema spec section 7.2.3, doesn't seem to work with docson:
{
"id": "http://my.site/myschema#",
"definitions": {
"schema1": {
"id": "schema1",
"type": "integer"
},
"schema2": {
"type": "array",
"items": { "$ref": "schema1" }
}
}
}
http://json-schema.org/latest/json-schema-core.html
It looks like the id
tag in schema1
is being ignored when resolving the $ref
. This isn't apparent in the html, but you can see a 404 on the network when it tries to resolve the reference.