{ "$schema": "https://json-schema.org/draft/2020-12/schema", "$id": "norn.graph.document.v1", "type": "object", "required": ["schema", "nodes", "edges"], "properties": { "schema": { "const": "norn.graph.document.v1" }, "nodes": { "type": "array", "items": { "type": "object", "required": ["id"], "properties": { "id": { "type": "string", "minLength": 1 }, "weight": { "type": "number", "exclusiveMinimum": 0 }, "width": { "type": "number", "exclusiveMinimum": 0 }, "height": { "type": "number", "exclusiveMinimum": 0 } }, "additionalProperties": true } }, "edges": { "type": "array", "items": { "type": "object", "required": ["source", "target"], "properties": { "id": { "type": "string", "minLength": 1 }, "source": { "type": "string", "minLength": 1 }, "target": { "type": "string", "minLength": 1 } }, "additionalProperties": true } } }, "additionalProperties": true }