Norn/schemas/norn.graph.layout_result.v1.schema.json
2026-07-10 02:49:28 +01:00

21 lines
743 B
JSON

{
"$schema": "https://json-schema.org/draft/2020-12/schema",
"$id": "norn.graph.layout_result.v1",
"type": "object",
"required": ["schema", "nodeBounds", "edgeRoutes", "viewportBounds"],
"properties": {
"schema": { "const": "norn.graph.layout_result.v1" },
"nodeBounds": { "type": "array", "items": { "type": "object" } },
"edgeRoutes": { "type": "array", "items": { "type": "object" } },
"viewportBounds": {
"type": "object",
"required": ["x", "y", "width", "height"],
"properties": {
"x": { "type": "number" }, "y": { "type": "number" },
"width": { "type": "number", "minimum": 0 }, "height": { "type": "number", "minimum": 0 }
}
}
},
"additionalProperties": true
}