Diagram
Your diagram, kept as you sent it: keys we do not model, such as notes, come back untouched,
and so do your bricks. The one thing we add is isTarget: true, on any node other than the
start point, a note or a global_keywords block that does not already say whether a
connection may end at it.
We read nodes and connections to check it. A diagram missing either is stored anyway and
reported as breaking rules. When present, each must be an object keyed by id whose entries are
objects: a list, or an entry that is not an object, is answered 400 keyed by diagram.
- connectionsType: objectrequiredProperties: 1
Connections by id
- nodesType: objectrequiredProperties: 1
Blocks by id
- bricksType: objectProperties: 1
The diagram each
brickblock runs, keyed by the id of the block placing it: a brick blockB0runsbricks.B0, and nothing else links the two. It is one flat map whatever the nesting, so a brick placed inside another one is kept here too, under its own block's id. - propertyadditionalPropertyType: anything
Name
{
"nodes": {
"hidden": {
"id": "hidden",
"path": "hidden",
"template": "hidden",
"params": {}
},
"welcome": {
"id": "welcome",
"path": "welcome",
"template": "var_text",
"params": {
"version": 3,
"text": "Hi! What is your name?",
"destination": "name"
}
}
},
"connections": {
"hidden.success--welcome": {
"id": "hidden.success--welcome",
"type": "success",
"sourcePath": "hidden",
"targetPath": "welcome"
}
}
}