{ "title": "Sankey", "additionalProperties": false, "properties": { "unit": { "type": "string", "maxLength": 12 }, "nodes": { "type": "array", "items": { "type": "object", "required": ["id"], "additionalProperties": false, "properties": { "id": { "type": "string" }, "label": { "type": "string", "maxLength": 28 }, "focal": { "type": "boolean" }, "col": { "type": "integer", "minimum": 0 } } } }, "links": { "anyOf": [ { "type": "string" }, { "type": "array", "minItems": 1, "items": { "anyOf": [ { "type": "array", "minItems": 3, "maxItems": 4, "items": [ { "type": "string" }, { "type": "string" }, { "type": "number", "minimum": 0 }, { "type": "boolean" } ] }, { "type": "object", "required": ["from", "to", "value"], "additionalProperties": false, "properties": { "from": { "type": "string" }, "to": { "type": "string" }, "value": { "type": "number", "minimum": 0 }, "focal": { "type": "boolean" } } } ] } } ] }, "from": { "type": "string" }, "to": { "type": "string" }, "value": { "type": "string" } }, "required": ["links"] }