|
| 1 | +{ |
| 2 | + "$schema": "http://json-schema.org/draft-07/schema#", |
| 3 | + "type": "object", |
| 4 | + "patternProperties": { |
| 5 | + ".*": { "$ref": "#/definitions/canvas" } |
| 6 | + }, |
| 7 | + "additionalProperties": false, |
| 8 | + "definitions": { |
| 9 | + "canvas": { |
| 10 | + "type": "object", |
| 11 | + "required": ["id", "layout", "metadata", "sections"], |
| 12 | + "additionalProperties": false, |
| 13 | + "properties": { |
| 14 | + "id": {"type": "string"}, |
| 15 | + "layout": { |
| 16 | + "type": "object", |
| 17 | + "required": ["columns", "rows"], |
| 18 | + "properties": { |
| 19 | + "columns": {"type": "number"}, |
| 20 | + "rows": {"type": "number"} |
| 21 | + }, |
| 22 | + "additionalProperties": false |
| 23 | + }, |
| 24 | + "metadata": { |
| 25 | + "type": "object", |
| 26 | + "required": ["source", "license", "authors", "website"], |
| 27 | + "properties": { |
| 28 | + "source": {"type": "string"}, |
| 29 | + "license": {"type": "string"}, |
| 30 | + "authors": {"type": "array", "items": {"type": "string"}}, |
| 31 | + "website": {"type": "string"} |
| 32 | + }, |
| 33 | + "additionalProperties": false |
| 34 | + }, |
| 35 | + "sections": { |
| 36 | + "type": "array", |
| 37 | + "items": { |
| 38 | + "type": "object", |
| 39 | + "required": ["id", "gridPosition", "fillOrder"], |
| 40 | + "additionalProperties": false, |
| 41 | + "properties": { |
| 42 | + "id": {"type": "string"}, |
| 43 | + "gridPosition": { |
| 44 | + "type": "object", |
| 45 | + "required": ["column", "row", "colSpan", "rowSpan"], |
| 46 | + "properties": { |
| 47 | + "column": {"type": "number"}, |
| 48 | + "row": {"type": "number"}, |
| 49 | + "colSpan": {"type": "number"}, |
| 50 | + "rowSpan": {"type": "number"} |
| 51 | + }, |
| 52 | + "additionalProperties": false |
| 53 | + }, |
| 54 | + "fillOrder": {"type": "number"}, |
| 55 | + "highlight": {"type": "boolean"}, |
| 56 | + "journeySteps": {"type": "boolean"} |
| 57 | + } |
| 58 | + } |
| 59 | + } |
| 60 | + } |
| 61 | + } |
| 62 | + } |
| 63 | +} |
0 commit comments