From 047826d804830a23bbb20129c8cd8f67eba86923 Mon Sep 17 00:00:00 2001 From: kguillouard Date: Tue, 12 Mar 2024 00:38:46 +0100 Subject: [PATCH 01/24] chore: pushed new JSON-Schema --- schema.json | 263 ++++++++++++++++++++++++++++++++++++++++++++++++++++ 1 file changed, 263 insertions(+) create mode 100644 schema.json diff --git a/schema.json b/schema.json new file mode 100644 index 0000000..4742ed3 --- /dev/null +++ b/schema.json @@ -0,0 +1,263 @@ +{ + "$schema": "http://json-schema.org/draft-07/schema#", + "default": { + "edges": [], + "nodes": [] + }, + "properties": { + "required": true, + "edges": { + "items": { + "$ref": "#/definitions/JSONCanvasEdge" + }, + "type": "array" + }, + "nodes": { + "items": { + "$ref": "#/definitions/JSONCanvasNode" + }, + "type": "array" + } + }, + "definitions": { + "JSONCanvasColor": { + "anyOf": [ + { + "type": "string" + }, + { + "$ref": "#/definitions/JSONCanvasColorPreset" + } + ] + }, + "JSONCanvasColorPreset": { + "enum": [1, 2, 3, 4, 5, 6], + "type": "number" + }, + "JSONCanvasEdge": { + "additionalProperties": false, + "properties": { + "color": { + "$ref": "#/definitions/JSONCanvasColor" + }, + "fromNode": { + "type": "string" + }, + "fromSide": { + "$ref": "#/definitions/JSONCanvasEdgeSide" + }, + "id": { + "type": "string" + }, + "label": { + "type": "string" + }, + "toEnd": { + "$ref": "#/definitions/JSONCanvasEdgeEnd" + }, + "toNode": { + "type": "string" + }, + "toSide": { + "$ref": "#/definitions/JSONCanvasEdgeSide" + } + }, + "required": ["id", "fromNode", "toNode"], + "type": "object" + }, + "JSONCanvasEdgeEnd": { + "enum": ["none", "arrow"], + "type": "string" + }, + "JSONCanvasEdgeSide": { + "enum": ["top", "right", "bottom", "left"], + "type": "string" + }, + "JSONCanvasFileNode": { + "additionalProperties": false, + "properties": { + "color": { + "$ref": "#/definitions/JSONCanvasColor" + }, + "file": { + "type": "string" + }, + "height": { + "type": "number" + }, + "id": { + "type": "string" + }, + "subpath": { + "type": "string" + }, + "type": { + "const": "file", + "type": "string" + }, + "width": { + "type": "number" + }, + "x": { + "type": "number" + }, + "y": { + "type": "number" + } + }, + "required": ["file", "height", "id", "type", "width", "x", "y"], + "type": "object" + }, + "JSONCanvasGroupNode": { + "additionalProperties": false, + "properties": { + "background": { + "type": "string" + }, + "backgroundStyle": { + "enum": ["cover", "ratio", "repeat"], + "type": "string" + }, + "color": { + "$ref": "#/definitions/JSONCanvasColor" + }, + "height": { + "type": "number" + }, + "id": { + "type": "string" + }, + "label": { + "type": "string" + }, + "type": { + "const": "group", + "type": "string" + }, + "width": { + "type": "number" + }, + "x": { + "type": "number" + }, + "y": { + "type": "number" + } + }, + "required": ["height", "id", "type", "width", "x", "y"], + "type": "object" + }, + "JSONCanvasLinkNode": { + "additionalProperties": false, + "properties": { + "color": { + "$ref": "#/definitions/JSONCanvasColor" + }, + "height": { + "type": "number" + }, + "id": { + "type": "string" + }, + "type": { + "const": "link", + "type": "string" + }, + "url": { + "type": "string" + }, + "width": { + "type": "number" + }, + "x": { + "type": "number" + }, + "y": { + "type": "number" + } + }, + "required": ["height", "id", "type", "url", "width", "x", "y"], + "type": "object" + }, + "JSONCanvasNode": { + "anyOf": [ + { + "$ref": "#/definitions/JSONCanvasNodeType" + }, + { + "$ref": "#/definitions/JSONCanvasTextNode" + }, + { + "$ref": "#/definitions/JSONCanvasFileNode" + }, + { + "$ref": "#/definitions/JSONCanvasLinkNode" + }, + { + "$ref": "#/definitions/JSONCanvasGroupNode" + } + ] + }, + "JSONCanvasNodeType": { + "additionalProperties": false, + "properties": { + "color": { + "$ref": "#/definitions/JSONCanvasColor" + }, + "height": { + "type": "number" + }, + "id": { + "type": "string" + }, + "type": { + "enum": ["text", "file", "link", "group"], + "type": "string" + }, + "width": { + "type": "number" + }, + "x": { + "type": "number" + }, + "y": { + "type": "number" + } + }, + "required": ["id", "type", "x", "y", "width", "height"], + "type": "object" + }, + "JSONCanvasTextNode": { + "additionalProperties": false, + "properties": { + "color": { + "$ref": "#/definitions/JSONCanvasColor" + }, + "height": { + "type": "number" + }, + "id": { + "type": "string" + }, + "text": { + "type": "string" + }, + "type": { + "const": "text", + "type": "string" + }, + "width": { + "type": "number" + }, + "x": { + "type": "number" + }, + "y": { + "type": "number" + } + }, + "required": ["height", "id", "text", "type", "width", "x", "y"], + "type": "object" + } + } +} From af6aae7b42b4262f5f2a17c8e20b28fdda8566aa Mon Sep 17 00:00:00 2001 From: =?UTF-8?q?K=C3=A9vin=20Guillouard?= Date: Fri, 15 Mar 2024 14:09:48 +0100 Subject: [PATCH 02/24] Update schema.json MIME-Version: 1.0 Content-Type: text/plain; charset=UTF-8 Content-Transfer-Encoding: 8bit Co-authored-by: Olivier Mengué --- schema.json | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/schema.json b/schema.json index 4742ed3..040c0ef 100644 --- a/schema.json +++ b/schema.json @@ -170,7 +170,7 @@ "type": "number" }, "x": { - "type": "number" + "type": "integer" }, "y": { "type": "number" From 6b0c297614a63e5c368d40387fdfb93cd8da0ecd Mon Sep 17 00:00:00 2001 From: =?UTF-8?q?K=C3=A9vin=20Guillouard?= Date: Fri, 15 Mar 2024 14:09:54 +0100 Subject: [PATCH 03/24] Update schema.json MIME-Version: 1.0 Content-Type: text/plain; charset=UTF-8 Content-Transfer-Encoding: 8bit Co-authored-by: Olivier Mengué --- schema.json | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/schema.json b/schema.json index 040c0ef..bf7c0df 100644 --- a/schema.json +++ b/schema.json @@ -167,7 +167,7 @@ "type": "string" }, "width": { - "type": "number" + "type": "integer" }, "x": { "type": "integer" From f6dbc6a50385516b44d09fe7a616acf84a2e113f Mon Sep 17 00:00:00 2001 From: =?UTF-8?q?K=C3=A9vin=20Guillouard?= Date: Fri, 15 Mar 2024 14:09:59 +0100 Subject: [PATCH 04/24] Update schema.json MIME-Version: 1.0 Content-Type: text/plain; charset=UTF-8 Content-Transfer-Encoding: 8bit Co-authored-by: Olivier Mengué --- schema.json | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/schema.json b/schema.json index bf7c0df..f73bbc0 100644 --- a/schema.json +++ b/schema.json @@ -247,7 +247,7 @@ "type": "string" }, "width": { - "type": "number" + "type": "integer" }, "x": { "type": "number" From fd792acd4822122748db3ac5aef02e3248c00b8c Mon Sep 17 00:00:00 2001 From: =?UTF-8?q?K=C3=A9vin=20Guillouard?= Date: Fri, 15 Mar 2024 14:10:04 +0100 Subject: [PATCH 05/24] Update schema.json MIME-Version: 1.0 Content-Type: text/plain; charset=UTF-8 Content-Transfer-Encoding: 8bit Co-authored-by: Olivier Mengué --- schema.json | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/schema.json b/schema.json index f73bbc0..50a3b0f 100644 --- a/schema.json +++ b/schema.json @@ -253,7 +253,7 @@ "type": "number" }, "y": { - "type": "number" + "type": "integer" } }, "required": ["height", "id", "text", "type", "width", "x", "y"], From f5c98f54e211f90952d5d8d4979920f8940a3afc Mon Sep 17 00:00:00 2001 From: =?UTF-8?q?K=C3=A9vin=20Guillouard?= Date: Fri, 15 Mar 2024 14:10:10 +0100 Subject: [PATCH 06/24] Update schema.json MIME-Version: 1.0 Content-Type: text/plain; charset=UTF-8 Content-Transfer-Encoding: 8bit Co-authored-by: Olivier Mengué --- schema.json | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/schema.json b/schema.json index 50a3b0f..c1758cc 100644 --- a/schema.json +++ b/schema.json @@ -1,5 +1,5 @@ { - "$schema": "http://json-schema.org/draft-07/schema#", + "$schema": "https://json-schema.org/draft/2020-12/schema", "default": { "edges": [], "nodes": [] From de459f4c613aec6cc10b5decc98be724fbb0e218 Mon Sep 17 00:00:00 2001 From: =?UTF-8?q?K=C3=A9vin=20Guillouard?= Date: Fri, 15 Mar 2024 14:10:37 +0100 Subject: [PATCH 07/24] Update schema.json MIME-Version: 1.0 Content-Type: text/plain; charset=UTF-8 Content-Transfer-Encoding: 8bit Co-authored-by: Olivier Mengué --- schema.json | 1 - 1 file changed, 1 deletion(-) diff --git a/schema.json b/schema.json index c1758cc..a3ee155 100644 --- a/schema.json +++ b/schema.json @@ -5,7 +5,6 @@ "nodes": [] }, "properties": { - "required": true, "edges": { "items": { "$ref": "#/definitions/JSONCanvasEdge" From 55e231473096382ce8ffdef8fe592be5cc2d55c3 Mon Sep 17 00:00:00 2001 From: =?UTF-8?q?K=C3=A9vin=20Guillouard?= Date: Fri, 15 Mar 2024 14:10:41 +0100 Subject: [PATCH 08/24] Update schema.json MIME-Version: 1.0 Content-Type: text/plain; charset=UTF-8 Content-Transfer-Encoding: 8bit Co-authored-by: Olivier Mengué --- schema.json | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/schema.json b/schema.json index a3ee155..388bbeb 100644 --- a/schema.json +++ b/schema.json @@ -249,7 +249,7 @@ "type": "integer" }, "x": { - "type": "number" + "type": "integer" }, "y": { "type": "integer" From f493d4ba04aa356c43a02410351b198f6c66bb83 Mon Sep 17 00:00:00 2001 From: =?UTF-8?q?K=C3=A9vin=20Guillouard?= Date: Fri, 15 Mar 2024 14:10:46 +0100 Subject: [PATCH 09/24] Update schema.json MIME-Version: 1.0 Content-Type: text/plain; charset=UTF-8 Content-Transfer-Encoding: 8bit Co-authored-by: Olivier Mengué --- schema.json | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/schema.json b/schema.json index 388bbeb..f1f9d56 100644 --- a/schema.json +++ b/schema.json @@ -233,7 +233,7 @@ "$ref": "#/definitions/JSONCanvasColor" }, "height": { - "type": "number" + "type": "integer" }, "id": { "type": "string" From b80ea589d668c7ccf302f731a5588fe24a449939 Mon Sep 17 00:00:00 2001 From: kguillouard Date: Fri, 15 Mar 2024 14:43:12 +0100 Subject: [PATCH 10/24] added description, change version --- sample.canvas | 1 + schema.json | 78 ++++++++++++++++++++++++++++++++++++++++++--------- 2 files changed, 66 insertions(+), 13 deletions(-) diff --git a/sample.canvas b/sample.canvas index 24a5902..51ab7bf 100644 --- a/sample.canvas +++ b/sample.canvas @@ -1,4 +1,5 @@ { + "$schema": "./schema.json", "nodes":[ {"id":"8132d4d894c80022","type":"file","file":"readme.md","x":-280,"y":-200,"width":570,"height":560,"color":"6"}, {"id":"7efdbbe0c4742315","type":"file","file":"_site/logo.svg","x":-280,"y":-440,"width":217,"height":80}, diff --git a/schema.json b/schema.json index f1f9d56..6c5e780 100644 --- a/schema.json +++ b/schema.json @@ -6,23 +6,27 @@ }, "properties": { "edges": { + "description": "Edges are lines that connect one node to another", "items": { "$ref": "#/definitions/JSONCanvasEdge" }, "type": "array" }, "nodes": { + "description": "Nodes are objects within the canvas. Nodes may be text, files, links, or groups", "items": { "$ref": "#/definitions/JSONCanvasNode" }, "type": "array" } }, - "definitions": { + "$defs": { "JSONCanvasColor": { "anyOf": [ { - "type": "string" + "description": "A color in hex format, e.g. #ff0000", + "type": "string", + "pattern": "^#[0-9a-fA-F]{6}$" }, { "$ref": "#/definitions/JSONCanvasColorPreset" @@ -30,8 +34,10 @@ ] }, "JSONCanvasColorPreset": { - "enum": [1, 2, 3, 4, 5, 6], - "type": "number" + "title": "A preset color.", + "description": "Six preset colors exist, mapped to the following numbers:\n1 red\n2 orange\n3 yellow\n4 green\n5 cyan\n6 purple", + "enum": ["1", "2", "3", "4", "5", "6"], + "type": "string" }, "JSONCanvasEdge": { "additionalProperties": false, @@ -40,24 +46,30 @@ "$ref": "#/definitions/JSONCanvasColor" }, "fromNode": { + "description": "The ID of the node that the edge starts from", "type": "string" }, "fromSide": { + "description": "The side of the node that the edge connects from", "$ref": "#/definitions/JSONCanvasEdgeSide" }, "id": { + "description": "The ID for the edge", "type": "string" }, "label": { + "description": "The text label for the edge", "type": "string" }, "toEnd": { "$ref": "#/definitions/JSONCanvasEdgeEnd" }, "toNode": { + "description": "The ID of the node that the edge ends at", "type": "string" }, "toSide": { + "description": "The side of the node that the edge connects to", "$ref": "#/definitions/JSONCanvasEdgeSide" } }, @@ -65,10 +77,12 @@ "type": "object" }, "JSONCanvasEdgeEnd": { + "description": "The rendering style of the end of the edge line", "enum": ["none", "arrow"], "type": "string" }, "JSONCanvasEdgeSide": { + "description": "The side of the node that the edge connects to", "enum": ["top", "right", "bottom", "left"], "type": "string" }, @@ -79,28 +93,37 @@ "$ref": "#/definitions/JSONCanvasColor" }, "file": { - "type": "string" + "description": "The path to the file within the system", + "type": "string", + "minLength": 1 }, "height": { + "description": "The height of the node in pixels", "type": "number" }, "id": { + "description": "Unique ID for the node", "type": "string" }, "subpath": { + "description": "The subpath that may link to a heading or a block. Always starts with a #", "type": "string" }, "type": { + "description": "The node type", "const": "file", "type": "string" }, "width": { + "description": "The width of the node in pixels", "type": "number" }, "x": { + "description": "The x position of the node in pixels", "type": "number" }, "y": { + "description": "The y position of the node in pixels", "type": "number" } }, @@ -111,9 +134,12 @@ "additionalProperties": false, "properties": { "background": { + "description": "The path to the background image", "type": "string" }, "backgroundStyle": { + "title": "The rendering style of a background image.", + "description": "Options are:\ncover - fills the entire width and height of the node.\nratio - maintains the aspect ratio of the background image.\nrepeat - repeats the image as a pattern in both x/y directions.", "enum": ["cover", "ratio", "repeat"], "type": "string" }, @@ -121,25 +147,32 @@ "$ref": "#/definitions/JSONCanvasColor" }, "height": { + "description": "The height of the node in pixels", "type": "number" }, "id": { + "description": "Unique ID for the node", "type": "string" }, "label": { + "description": "The text label for the group", "type": "string" }, "type": { + "description": "The node type", "const": "group", "type": "string" }, "width": { + "description": "The width of the node in pixels", "type": "number" }, "x": { + "description": "The x position of the node in pixels", "type": "number" }, "y": { + "description": "The y position of the node in pixels", "type": "number" } }, @@ -153,12 +186,15 @@ "$ref": "#/definitions/JSONCanvasColor" }, "height": { + "description": "The height of the node in pixels", "type": "number" }, "id": { + "description": "Unique ID for the node", "type": "string" }, "type": { + "description": "The node type", "const": "link", "type": "string" }, @@ -166,12 +202,15 @@ "type": "string" }, "width": { - "type": "integer" + "description": "The width of the node in pixels", + "type": "number" }, "x": { - "type": "integer" + "description": "The x position of the node in pixels", + "type": "number" }, "y": { + "description": "The y position of the node in pixels", "type": "number" } }, @@ -181,7 +220,7 @@ "JSONCanvasNode": { "anyOf": [ { - "$ref": "#/definitions/JSONCanvasNodeType" + "$ref": "#/definitions/JSONCanvasNodeGeneric" }, { "$ref": "#/definitions/JSONCanvasTextNode" @@ -197,29 +236,35 @@ } ] }, - "JSONCanvasNodeType": { + "JSONCanvasNodeGeneric": { "additionalProperties": false, "properties": { "color": { "$ref": "#/definitions/JSONCanvasColor" }, "height": { + "description": "The height of the node in pixels", "type": "number" }, "id": { + "description": "Unique ID for the node", "type": "string" }, "type": { + "description": "The node type", "enum": ["text", "file", "link", "group"], "type": "string" }, "width": { + "description": "The width of the node in pixels", "type": "number" }, "x": { + "description": "The x position of the node in pixels", "type": "number" }, "y": { + "description": "The y position of the node in pixels", "type": "number" } }, @@ -233,26 +278,33 @@ "$ref": "#/definitions/JSONCanvasColor" }, "height": { - "type": "integer" + "description": "The height of the node in pixels", + "type": "number" }, "id": { + "description": "Unique ID for the node", "type": "string" }, "text": { + "description": "Plain text with Markdown syntax", "type": "string" }, "type": { + "description": "The node type", "const": "text", "type": "string" }, "width": { - "type": "integer" + "description": "The width of the node in pixels", + "type": "number" }, "x": { - "type": "integer" + "description": "The x position of the node in pixels", + "type": "number" }, "y": { - "type": "integer" + "description": "The y position of the node in pixels", + "type": "number" } }, "required": ["height", "id", "text", "type", "width", "x", "y"], From 706ed3bddbf416d985d5c29afebc684d649bc46a Mon Sep 17 00:00:00 2001 From: =?UTF-8?q?K=C3=A9vin=20Guillouard?= Date: Fri, 15 Mar 2024 16:20:45 +0100 Subject: [PATCH 11/24] Update schema.json MIME-Version: 1.0 Content-Type: text/plain; charset=UTF-8 Content-Transfer-Encoding: 8bit Co-authored-by: Olivier Mengué --- schema.json | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/schema.json b/schema.json index 6c5e780..aea76d1 100644 --- a/schema.json +++ b/schema.json @@ -99,7 +99,7 @@ }, "height": { "description": "The height of the node in pixels", - "type": "number" + "type": "integer" }, "id": { "description": "Unique ID for the node", From 32232e600cee594b2980f39cad80e3c71b36f4b9 Mon Sep 17 00:00:00 2001 From: =?UTF-8?q?K=C3=A9vin=20Guillouard?= Date: Fri, 15 Mar 2024 16:20:52 +0100 Subject: [PATCH 12/24] Update schema.json MIME-Version: 1.0 Content-Type: text/plain; charset=UTF-8 Content-Transfer-Encoding: 8bit Co-authored-by: Olivier Mengué --- schema.json | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/schema.json b/schema.json index aea76d1..5e71d73 100644 --- a/schema.json +++ b/schema.json @@ -116,7 +116,7 @@ }, "width": { "description": "The width of the node in pixels", - "type": "number" + "type": "integer" }, "x": { "description": "The x position of the node in pixels", From 94474b04e6b27233d35ccdbdc7a18de509e2a7dc Mon Sep 17 00:00:00 2001 From: =?UTF-8?q?K=C3=A9vin=20Guillouard?= Date: Fri, 15 Mar 2024 16:20:59 +0100 Subject: [PATCH 13/24] Update schema.json MIME-Version: 1.0 Content-Type: text/plain; charset=UTF-8 Content-Transfer-Encoding: 8bit Co-authored-by: Olivier Mengué --- schema.json | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/schema.json b/schema.json index 5e71d73..582b3da 100644 --- a/schema.json +++ b/schema.json @@ -124,7 +124,7 @@ }, "y": { "description": "The y position of the node in pixels", - "type": "number" + "type": "integer" } }, "required": ["file", "height", "id", "type", "width", "x", "y"], From f93ce4415c5af90faa23e03f0ae45263a36a1fca Mon Sep 17 00:00:00 2001 From: =?UTF-8?q?K=C3=A9vin=20Guillouard?= Date: Fri, 15 Mar 2024 16:21:04 +0100 Subject: [PATCH 14/24] Update schema.json MIME-Version: 1.0 Content-Type: text/plain; charset=UTF-8 Content-Transfer-Encoding: 8bit Co-authored-by: Olivier Mengué --- schema.json | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/schema.json b/schema.json index 582b3da..f854d12 100644 --- a/schema.json +++ b/schema.json @@ -120,7 +120,7 @@ }, "x": { "description": "The x position of the node in pixels", - "type": "number" + "type": "integer" }, "y": { "description": "The y position of the node in pixels", From 60f2520d40746c5c4ead4c5848a6639498de9484 Mon Sep 17 00:00:00 2001 From: =?UTF-8?q?K=C3=A9vin=20Guillouard?= Date: Fri, 15 Mar 2024 16:21:15 +0100 Subject: [PATCH 15/24] Update schema.json MIME-Version: 1.0 Content-Type: text/plain; charset=UTF-8 Content-Transfer-Encoding: 8bit Co-authored-by: Olivier Mengué --- schema.json | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/schema.json b/schema.json index f854d12..6ecfce5 100644 --- a/schema.json +++ b/schema.json @@ -148,7 +148,7 @@ }, "height": { "description": "The height of the node in pixels", - "type": "number" + "type": "integer" }, "id": { "description": "Unique ID for the node", From 8977291629c8304dc69546779f776896bc36e0ab Mon Sep 17 00:00:00 2001 From: =?UTF-8?q?K=C3=A9vin=20Guillouard?= Date: Fri, 15 Mar 2024 16:21:21 +0100 Subject: [PATCH 16/24] Update schema.json MIME-Version: 1.0 Content-Type: text/plain; charset=UTF-8 Content-Transfer-Encoding: 8bit Co-authored-by: Olivier Mengué --- schema.json | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/schema.json b/schema.json index 6ecfce5..1ce8b28 100644 --- a/schema.json +++ b/schema.json @@ -165,7 +165,7 @@ }, "width": { "description": "The width of the node in pixels", - "type": "number" + "type": "integer" }, "x": { "description": "The x position of the node in pixels", From 9fc0df4e955fcc463d35d8c680878863ed83826f Mon Sep 17 00:00:00 2001 From: =?UTF-8?q?K=C3=A9vin=20Guillouard?= Date: Fri, 15 Mar 2024 16:21:27 +0100 Subject: [PATCH 17/24] Update schema.json MIME-Version: 1.0 Content-Type: text/plain; charset=UTF-8 Content-Transfer-Encoding: 8bit Co-authored-by: Olivier Mengué --- schema.json | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/schema.json b/schema.json index 1ce8b28..521a6f4 100644 --- a/schema.json +++ b/schema.json @@ -169,7 +169,7 @@ }, "x": { "description": "The x position of the node in pixels", - "type": "number" + "type": "integer" }, "y": { "description": "The y position of the node in pixels", From 084c303030a4e707031bb040cac5dd8b1b410720 Mon Sep 17 00:00:00 2001 From: =?UTF-8?q?K=C3=A9vin=20Guillouard?= Date: Fri, 15 Mar 2024 16:21:32 +0100 Subject: [PATCH 18/24] Update schema.json MIME-Version: 1.0 Content-Type: text/plain; charset=UTF-8 Content-Transfer-Encoding: 8bit Co-authored-by: Olivier Mengué --- schema.json | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/schema.json b/schema.json index 521a6f4..0b633ad 100644 --- a/schema.json +++ b/schema.json @@ -173,7 +173,7 @@ }, "y": { "description": "The y position of the node in pixels", - "type": "number" + "type": "integer" } }, "required": ["height", "id", "type", "width", "x", "y"], From 793c00f80e4b7ef0c07a2f4af4e9dba4dca93205 Mon Sep 17 00:00:00 2001 From: =?UTF-8?q?K=C3=A9vin=20Guillouard?= Date: Fri, 15 Mar 2024 16:21:37 +0100 Subject: [PATCH 19/24] Update schema.json MIME-Version: 1.0 Content-Type: text/plain; charset=UTF-8 Content-Transfer-Encoding: 8bit Co-authored-by: Olivier Mengué --- schema.json | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/schema.json b/schema.json index 0b633ad..1d5b47a 100644 --- a/schema.json +++ b/schema.json @@ -187,7 +187,7 @@ }, "height": { "description": "The height of the node in pixels", - "type": "number" + "type": "integer" }, "id": { "description": "Unique ID for the node", From b00b1bd3cccfd802362ca2b5c926596540f1376a Mon Sep 17 00:00:00 2001 From: =?UTF-8?q?K=C3=A9vin=20Guillouard?= Date: Fri, 15 Mar 2024 16:21:42 +0100 Subject: [PATCH 20/24] Update schema.json MIME-Version: 1.0 Content-Type: text/plain; charset=UTF-8 Content-Transfer-Encoding: 8bit Co-authored-by: Olivier Mengué --- schema.json | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/schema.json b/schema.json index 1d5b47a..e2b4270 100644 --- a/schema.json +++ b/schema.json @@ -211,7 +211,7 @@ }, "y": { "description": "The y position of the node in pixels", - "type": "number" + "type": "integer" } }, "required": ["height", "id", "type", "url", "width", "x", "y"], From aee96d59f1f9cd9f1ca4668c264d2bdde5f83362 Mon Sep 17 00:00:00 2001 From: =?UTF-8?q?K=C3=A9vin=20Guillouard?= Date: Fri, 15 Mar 2024 16:21:48 +0100 Subject: [PATCH 21/24] Update schema.json MIME-Version: 1.0 Content-Type: text/plain; charset=UTF-8 Content-Transfer-Encoding: 8bit Co-authored-by: Olivier Mengué --- schema.json | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/schema.json b/schema.json index e2b4270..2667152 100644 --- a/schema.json +++ b/schema.json @@ -244,7 +244,7 @@ }, "height": { "description": "The height of the node in pixels", - "type": "number" + "type": "integer" }, "id": { "description": "Unique ID for the node", From 9cfd89c50ebd8785eafbde1e7db785b2912e6902 Mon Sep 17 00:00:00 2001 From: =?UTF-8?q?K=C3=A9vin=20Guillouard?= Date: Fri, 15 Mar 2024 16:21:53 +0100 Subject: [PATCH 22/24] Update schema.json MIME-Version: 1.0 Content-Type: text/plain; charset=UTF-8 Content-Transfer-Encoding: 8bit Co-authored-by: Olivier Mengué --- schema.json | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/schema.json b/schema.json index 2667152..c80360a 100644 --- a/schema.json +++ b/schema.json @@ -257,7 +257,7 @@ }, "width": { "description": "The width of the node in pixels", - "type": "number" + "type": "integer" }, "x": { "description": "The x position of the node in pixels", From 1c18b0228f82699af2f813abf822651d7dae298c Mon Sep 17 00:00:00 2001 From: =?UTF-8?q?K=C3=A9vin=20Guillouard?= Date: Fri, 15 Mar 2024 16:21:58 +0100 Subject: [PATCH 23/24] Update schema.json MIME-Version: 1.0 Content-Type: text/plain; charset=UTF-8 Content-Transfer-Encoding: 8bit Co-authored-by: Olivier Mengué --- schema.json | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/schema.json b/schema.json index c80360a..a1387c2 100644 --- a/schema.json +++ b/schema.json @@ -261,7 +261,7 @@ }, "x": { "description": "The x position of the node in pixels", - "type": "number" + "type": "integer" }, "y": { "description": "The y position of the node in pixels", From bbd03fb5d40cda131df254717107c574a68e3785 Mon Sep 17 00:00:00 2001 From: =?UTF-8?q?K=C3=A9vin=20Guillouard?= Date: Fri, 15 Mar 2024 16:22:04 +0100 Subject: [PATCH 24/24] Update schema.json MIME-Version: 1.0 Content-Type: text/plain; charset=UTF-8 Content-Transfer-Encoding: 8bit Co-authored-by: Olivier Mengué --- schema.json | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/schema.json b/schema.json index a1387c2..3a9f10c 100644 --- a/schema.json +++ b/schema.json @@ -265,7 +265,7 @@ }, "y": { "description": "The y position of the node in pixels", - "type": "number" + "type": "integer" } }, "required": ["id", "type", "x", "y", "width", "height"],