{ "$schema": "http://json-schema.org/draft-07/schema#", "$id": "definitions.json", "title": "REX-DRI sub-entity definition", "description": "Schema to hold all the main definitions of JSON schemas from the REX-DRI project", "definitions": { "useful-links": { "type": "array", "items": { "type": "object", "properties": { "url": { "description": "The unique identifier for a product", "type": "string", "format": "uri", "maxLength": 500 }, "description": { "description": "Name of the product", "type": "string", "maxLength": 500 } }, "required": [ "url", "description" ], "additionalProperties": false } }, "photos": { "type": "array", "items": { "type": "object", "properties": { "title": { "type": "string", "maxLength": 200 }, "licence": { "type": "string", "maxLength": 500 }, "url": { "description": "The unique identifier for a product", "type": "string", "format": "uri", "pattern": "^.*\\.(svg|png|jpg|jpeg)$", "maxLength": 500 }, "description": { "description": "Short description of the picture", "type": "string", "maxLength": 500 } }, "required": [ "url", "title" ], "additionalProperties": false } } } }