|
| 1 | +{ |
| 2 | + "ocif": "https://canvasprotocol.org/ocif/0.2", |
| 3 | + "nodes": [ |
| 4 | + { |
| 5 | + "id": "112cc79c-6ea0-4438-baf1-9d34bb0660e2", |
| 6 | + "position": [-117.05704093373691, 88.18055130305666], |
| 7 | + "size": [200, 100], |
| 8 | + "data": [ |
| 9 | + { |
| 10 | + "type": "@code-flow-canvas/node-properties", |
| 11 | + "formValues": {}, |
| 12 | + "text": "rect", |
| 13 | + "taskType": "rect-node", |
| 14 | + "nodeType": "rect-node" |
| 15 | + }, |
| 16 | + { |
| 17 | + "type": "@ocwg/node/ports", |
| 18 | + "ports": ["input-output"] |
| 19 | + } |
| 20 | + ] |
| 21 | + }, |
| 22 | + { |
| 23 | + "id": "01d07003-7347-4a12-8955-a0ecd2b293c9", |
| 24 | + "position": [284.22932347659525, 223.8293644103727], |
| 25 | + "size": [200, 100], |
| 26 | + "data": [ |
| 27 | + { |
| 28 | + "type": "@code-flow-canvas/node-properties", |
| 29 | + "formValues": {}, |
| 30 | + "text": "rect", |
| 31 | + "taskType": "rect-node", |
| 32 | + "nodeType": "rect-node" |
| 33 | + }, |
| 34 | + { |
| 35 | + "type": "@ocwg/node/ports", |
| 36 | + "ports": ["input-output"] |
| 37 | + } |
| 38 | + ] |
| 39 | + }, |
| 40 | + { |
| 41 | + "id": "connection:31a62e02-39f9-4a58-9e08-f570336e71ec", |
| 42 | + "position": [-17.057037867826054, 138.18055283601208], |
| 43 | + "size": [0, 0], |
| 44 | + "data": [ |
| 45 | + { |
| 46 | + "type": "@code-flow-canvas/connection-properties", |
| 47 | + "lineType": "Straight", |
| 48 | + "start": { |
| 49 | + "connected_to": "112cc79c-6ea0-4438-baf1-9d34bb0660e2", |
| 50 | + "port_name": "input-output" |
| 51 | + }, |
| 52 | + "end": { |
| 53 | + "connected_to": "01d07003-7347-4a12-8955-a0ecd2b293c9", |
| 54 | + "port_name": "input-output" |
| 55 | + } |
| 56 | + } |
| 57 | + ] |
| 58 | + } |
| 59 | + ], |
| 60 | + "relations": [ |
| 61 | + { |
| 62 | + "id": "31a62e02-39f9-4a58-9e08-f570336e71ec-edge", |
| 63 | + "data": [ |
| 64 | + { |
| 65 | + "type": "@ocwg/rel/edge", |
| 66 | + "from": "112cc79c-6ea0-4438-baf1-9d34bb0660e2", |
| 67 | + "to": "01d07003-7347-4a12-8955-a0ecd2b293c9", |
| 68 | + "directed": true |
| 69 | + } |
| 70 | + ] |
| 71 | + } |
| 72 | + ], |
| 73 | + "resources": [], |
| 74 | + "schemas": [ |
| 75 | + { |
| 76 | + "uri": "https://codeflowcanvas.io/schemas/node/0.1.json", |
| 77 | + "name": "@code-flow-canvas/node-properties", |
| 78 | + "type": "object", |
| 79 | + "properties": { |
| 80 | + "type": { |
| 81 | + "type": "string" |
| 82 | + }, |
| 83 | + "nodeType": { |
| 84 | + "type": "string" |
| 85 | + } |
| 86 | + }, |
| 87 | + "required": ["type", "nodeType"], |
| 88 | + "additionalProperties": true |
| 89 | + }, |
| 90 | + { |
| 91 | + "uri": "https://codeflowcanvas.io/schemas/connection/0.1.json", |
| 92 | + "name": "@code-flow-canvas/connection-properties", |
| 93 | + "type": "object", |
| 94 | + "properties": { |
| 95 | + "type": { |
| 96 | + "type": "string" |
| 97 | + }, |
| 98 | + "start": { |
| 99 | + "type": "object", |
| 100 | + "properties": { |
| 101 | + "connected_to": { |
| 102 | + "type": "string" |
| 103 | + }, |
| 104 | + "portName": { |
| 105 | + "type": "string" |
| 106 | + } |
| 107 | + }, |
| 108 | + "required": ["connected_to", "portName"], |
| 109 | + "additionalProperties": false |
| 110 | + }, |
| 111 | + "end": { |
| 112 | + "type": "object", |
| 113 | + "properties": { |
| 114 | + "connected_to": { |
| 115 | + "type": "string" |
| 116 | + }, |
| 117 | + "portName": { |
| 118 | + "type": "string" |
| 119 | + } |
| 120 | + }, |
| 121 | + "required": ["connected_to", "portName"], |
| 122 | + "additionalProperties": false |
| 123 | + } |
| 124 | + }, |
| 125 | + "required": ["type", "start", "end"], |
| 126 | + "additionalProperties": true |
| 127 | + } |
| 128 | + ] |
| 129 | +} |
0 commit comments