Closed
Description
given a root schema and a subschema in a different file:
parent.json
{
"$schema": "http://json-schema.org/draft-04/schema#",
"type": "object",
"properties": {
"child": { "$ref": "child.json"}
}
}
child.json
{
"$schema": "http://json-schema.org/draft-04/schema#",
"id": "child.json",
"type": "object",
"properties": {
"foo": {"type": "string"},
"bar": {"type": "string"}
}
}
I would expect to be able to reference child.json as relative to the location of the root schema. Currently I would have to provide an absolute URI for the root schema id (i.e "id": "http://localhost:/myschemas/parent.json") and deploy that to a web container.
Metadata
Metadata
Assignees
Labels
No labels