docson icon indicating copy to clipboard operation
docson copied to clipboard

problem with $ref

Open acthp opened this issue 9 years ago • 0 comments

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.

acthp avatar May 16 '15 23:05 acthp