Revision 31c11a7a91486a50fceaa68f3773a5b915e8824d authored by Luke Bjerring on 20 March 2018, 13:10:20 UTC, committed by Philip Jägenstedt on 20 March 2018, 13:10:20 UTC
1 parent f2ae764
id.json
{
"$schema": "http://json-schema.org/draft-04/schema#",
"id" : "id.json",
"title": "Definitions: id key",
"description": "Schemas in #/definitions used to detect valid id (string of format uri or array containing 1 item of string, format uri).",
"definitions":
{
"stringUri" :
{
"$schema": "http://json-schema.org/draft-04/schema#",
"type": "string",
"format": "uri"
},
"arraySingleStringUri":
{
"oneOf":
[
{ "$ref": "#/definitions/stringUri" },
{ "type": "array",
"minItems": 1,
"maxItems": 1,
"items": { "$ref": "#/definitions/stringUri" }
}
]
},
"idValueFound":
{
"$schema": "http://json-schema.org/draft-04/schema#",
"type": "object",
"required": [ "id" ],
"properties": {
"id" : { "$ref": "#/definitions/arraySingleStringUri" }
}
}
}
}
Computing file changes ...