{
  "version": 1,
  "document": {
    "version": 1,
    "nodes": [
      {
        "id": "glass",
        "kind": "node",
        "parentId": null,
        "x": 90,
        "y": 100,
        "width": 256,
        "height": 164,
        "title": "Жидкое стекло",
        "body": "Пример содержимого",
        "style": {
          "tier": "primary",
          "tint": "none",
          "radius": "lg",
          "border": "soft",
          "shadow": "key",
          "refractionEdge": true
        },
        "collapsed": false
      },
      {
        "id": "result",
        "kind": "node",
        "parentId": null,
        "x": 484,
        "y": 100,
        "width": 256,
        "height": 164,
        "title": "Нода",
        "body": "",
        "style": {
          "tier": "primary",
          "tint": "cool",
          "radius": "lg",
          "border": "soft",
          "shadow": "key",
          "refractionEdge": true
        },
        "collapsed": false
      },
      {
        "id": "workspace",
        "kind": "group",
        "parentId": null,
        "x": 90,
        "y": 352,
        "width": 650,
        "height": 400,
        "title": "Группа нод",
        "body": "",
        "style": {
          "tier": "primary",
          "tint": "none",
          "radius": "lg",
          "border": "soft",
          "shadow": "ambient",
          "refractionEdge": true
        },
        "collapsed": false
      },
      {
        "id": "inside",
        "kind": "node",
        "parentId": "workspace",
        "x": 24,
        "y": 80,
        "width": 240,
        "height": 148,
        "title": "Вложенная нода",
        "body": "",
        "style": {
          "tier": "primary",
          "tint": "none",
          "radius": "lg",
          "border": "soft",
          "shadow": "key",
          "refractionEdge": true
        },
        "collapsed": false
      },
      {
        "id": "nested",
        "kind": "group",
        "parentId": "workspace",
        "x": 296,
        "y": 80,
        "width": 330,
        "height": 292,
        "title": "Вложенная группа",
        "body": "",
        "style": {
          "tier": "primary",
          "tint": "none",
          "radius": "lg",
          "border": "soft",
          "shadow": "none",
          "refractionEdge": true
        },
        "collapsed": false
      },
      {
        "id": "deep",
        "kind": "node",
        "parentId": "nested",
        "x": 24,
        "y": 80,
        "width": 282,
        "height": 164,
        "title": "Нода внутри группы",
        "body": "",
        "style": {
          "tier": "primary",
          "tint": "none",
          "radius": "lg",
          "border": "soft",
          "shadow": "key",
          "refractionEdge": true
        },
        "collapsed": false
      }
    ],
    "edges": [
      {
        "id": "glass-result",
        "source": "glass",
        "target": "result",
        "sourcePort": "right",
        "targetPort": "left",
        "label": "Связь",
        "route": "curve",
        "dashed": false
      },
      {
        "id": "result-deep",
        "source": "result",
        "target": "deep",
        "sourcePort": "bottom",
        "targetPort": "top",
        "label": "",
        "route": "curve",
        "dashed": false
      },
      {
        "id": "inside-deep",
        "source": "inside",
        "target": "deep",
        "sourcePort": "right",
        "targetPort": "left",
        "label": "",
        "route": "curve",
        "dashed": false
      }
    ]
  },
  "commands": [
    {
      "version": 1,
      "graphId": "demo",
      "actorId": "fixture-user",
      "commandId": "move-1",
      "baseRevision": 0,
      "operation": {
        "type": "node.move",
        "id": "glass",
        "position": {
          "x": 120,
          "y": 140
        }
      }
    },
    {
      "version": 1,
      "graphId": "demo",
      "actorId": "fixture-user",
      "commandId": "title-1",
      "baseRevision": 1,
      "operation": {
        "type": "node.update",
        "id": "glass",
        "patch": {
          "title": "Persistent node",
          "style": {
            "tint": "cool"
          }
        }
      }
    },
    {
      "version": 1,
      "graphId": "demo",
      "actorId": "fixture-user",
      "commandId": "collapse-1",
      "baseRevision": 2,
      "operation": {
        "type": "node.update",
        "id": "workspace",
        "patch": {
          "collapsed": true
        }
      }
    }
  ],
  "events": [
    {
      "version": 1,
      "type": "graph.command-applied",
      "graphId": "demo",
      "eventId": "move-1",
      "revision": 1,
      "command": {
        "version": 1,
        "graphId": "demo",
        "actorId": "fixture-user",
        "commandId": "move-1",
        "baseRevision": 0,
        "operation": {
          "type": "node.move",
          "id": "glass",
          "position": {
            "x": 120,
            "y": 140
          }
        }
      }
    },
    {
      "version": 1,
      "type": "graph.command-applied",
      "graphId": "demo",
      "eventId": "title-1",
      "revision": 2,
      "command": {
        "version": 1,
        "graphId": "demo",
        "actorId": "fixture-user",
        "commandId": "title-1",
        "baseRevision": 1,
        "operation": {
          "type": "node.update",
          "id": "glass",
          "patch": {
            "title": "Persistent node",
            "style": {
              "tint": "cool"
            }
          }
        }
      }
    },
    {
      "version": 1,
      "type": "graph.command-applied",
      "graphId": "demo",
      "eventId": "collapse-1",
      "revision": 3,
      "command": {
        "version": 1,
        "graphId": "demo",
        "actorId": "fixture-user",
        "commandId": "collapse-1",
        "baseRevision": 2,
        "operation": {
          "type": "node.update",
          "id": "workspace",
          "patch": {
            "collapsed": true
          }
        }
      }
    }
  ],
  "expectedDocument": {
    "version": 1,
    "nodes": [
      {
        "id": "glass",
        "kind": "node",
        "parentId": null,
        "x": 120,
        "y": 140,
        "width": 256,
        "height": 164,
        "title": "Persistent node",
        "body": "Пример содержимого",
        "style": {
          "tier": "primary",
          "tint": "cool",
          "radius": "lg",
          "border": "soft",
          "shadow": "key",
          "refractionEdge": true
        },
        "collapsed": false
      },
      {
        "id": "result",
        "kind": "node",
        "parentId": null,
        "x": 484,
        "y": 100,
        "width": 256,
        "height": 164,
        "title": "Нода",
        "body": "",
        "style": {
          "tier": "primary",
          "tint": "cool",
          "radius": "lg",
          "border": "soft",
          "shadow": "key",
          "refractionEdge": true
        },
        "collapsed": false
      },
      {
        "id": "workspace",
        "kind": "group",
        "parentId": null,
        "x": 90,
        "y": 352,
        "width": 650,
        "height": 400,
        "title": "Группа нод",
        "body": "",
        "style": {
          "tier": "primary",
          "tint": "none",
          "radius": "lg",
          "border": "soft",
          "shadow": "ambient",
          "refractionEdge": true
        },
        "collapsed": true
      },
      {
        "id": "inside",
        "kind": "node",
        "parentId": "workspace",
        "x": 24,
        "y": 80,
        "width": 240,
        "height": 148,
        "title": "Вложенная нода",
        "body": "",
        "style": {
          "tier": "primary",
          "tint": "none",
          "radius": "lg",
          "border": "soft",
          "shadow": "key",
          "refractionEdge": true
        },
        "collapsed": false
      },
      {
        "id": "nested",
        "kind": "group",
        "parentId": "workspace",
        "x": 296,
        "y": 80,
        "width": 330,
        "height": 292,
        "title": "Вложенная группа",
        "body": "",
        "style": {
          "tier": "primary",
          "tint": "none",
          "radius": "lg",
          "border": "soft",
          "shadow": "none",
          "refractionEdge": true
        },
        "collapsed": false
      },
      {
        "id": "deep",
        "kind": "node",
        "parentId": "nested",
        "x": 24,
        "y": 80,
        "width": 282,
        "height": 164,
        "title": "Нода внутри группы",
        "body": "",
        "style": {
          "tier": "primary",
          "tint": "none",
          "radius": "lg",
          "border": "soft",
          "shadow": "key",
          "refractionEdge": true
        },
        "collapsed": false
      }
    ],
    "edges": [
      {
        "id": "glass-result",
        "source": "glass",
        "target": "result",
        "sourcePort": "right",
        "targetPort": "left",
        "label": "Связь",
        "route": "curve",
        "dashed": false
      },
      {
        "id": "result-deep",
        "source": "result",
        "target": "deep",
        "sourcePort": "bottom",
        "targetPort": "top",
        "label": "",
        "route": "curve",
        "dashed": false
      },
      {
        "id": "inside-deep",
        "source": "inside",
        "target": "deep",
        "sourcePort": "right",
        "targetPort": "left",
        "label": "",
        "route": "curve",
        "dashed": false
      }
    ]
  },
  "cases": [
    {
      "schema": "document",
      "name": "valid",
      "valid": true,
      "input": {
        "version": 1,
        "nodes": [
          {
            "id": "glass",
            "kind": "node",
            "parentId": null,
            "x": 90,
            "y": 100,
            "width": 256,
            "height": 164,
            "title": "Жидкое стекло",
            "body": "Пример содержимого",
            "style": {
              "tier": "primary",
              "tint": "none",
              "radius": "lg",
              "border": "soft",
              "shadow": "key",
              "refractionEdge": true
            },
            "collapsed": false
          },
          {
            "id": "result",
            "kind": "node",
            "parentId": null,
            "x": 484,
            "y": 100,
            "width": 256,
            "height": 164,
            "title": "Нода",
            "body": "",
            "style": {
              "tier": "primary",
              "tint": "cool",
              "radius": "lg",
              "border": "soft",
              "shadow": "key",
              "refractionEdge": true
            },
            "collapsed": false
          },
          {
            "id": "workspace",
            "kind": "group",
            "parentId": null,
            "x": 90,
            "y": 352,
            "width": 650,
            "height": 400,
            "title": "Группа нод",
            "body": "",
            "style": {
              "tier": "primary",
              "tint": "none",
              "radius": "lg",
              "border": "soft",
              "shadow": "ambient",
              "refractionEdge": true
            },
            "collapsed": false
          },
          {
            "id": "inside",
            "kind": "node",
            "parentId": "workspace",
            "x": 24,
            "y": 80,
            "width": 240,
            "height": 148,
            "title": "Вложенная нода",
            "body": "",
            "style": {
              "tier": "primary",
              "tint": "none",
              "radius": "lg",
              "border": "soft",
              "shadow": "key",
              "refractionEdge": true
            },
            "collapsed": false
          },
          {
            "id": "nested",
            "kind": "group",
            "parentId": "workspace",
            "x": 296,
            "y": 80,
            "width": 330,
            "height": 292,
            "title": "Вложенная группа",
            "body": "",
            "style": {
              "tier": "primary",
              "tint": "none",
              "radius": "lg",
              "border": "soft",
              "shadow": "none",
              "refractionEdge": true
            },
            "collapsed": false
          },
          {
            "id": "deep",
            "kind": "node",
            "parentId": "nested",
            "x": 24,
            "y": 80,
            "width": 282,
            "height": 164,
            "title": "Нода внутри группы",
            "body": "",
            "style": {
              "tier": "primary",
              "tint": "none",
              "radius": "lg",
              "border": "soft",
              "shadow": "key",
              "refractionEdge": true
            },
            "collapsed": false
          }
        ],
        "edges": [
          {
            "id": "glass-result",
            "source": "glass",
            "target": "result",
            "sourcePort": "right",
            "targetPort": "left",
            "label": "Связь",
            "route": "curve",
            "dashed": false
          },
          {
            "id": "result-deep",
            "source": "result",
            "target": "deep",
            "sourcePort": "bottom",
            "targetPort": "top",
            "label": "",
            "route": "curve",
            "dashed": false
          },
          {
            "id": "inside-deep",
            "source": "inside",
            "target": "deep",
            "sourcePort": "right",
            "targetPort": "left",
            "label": "",
            "route": "curve",
            "dashed": false
          }
        ]
      }
    },
    {
      "schema": "document",
      "name": "unknown-field",
      "valid": false,
      "input": {
        "version": 1,
        "nodes": [
          {
            "id": "glass",
            "kind": "node",
            "parentId": null,
            "x": 90,
            "y": 100,
            "width": 256,
            "height": 164,
            "title": "Жидкое стекло",
            "body": "Пример содержимого",
            "style": {
              "tier": "primary",
              "tint": "none",
              "radius": "lg",
              "border": "soft",
              "shadow": "key",
              "refractionEdge": true
            },
            "collapsed": false
          },
          {
            "id": "result",
            "kind": "node",
            "parentId": null,
            "x": 484,
            "y": 100,
            "width": 256,
            "height": 164,
            "title": "Нода",
            "body": "",
            "style": {
              "tier": "primary",
              "tint": "cool",
              "radius": "lg",
              "border": "soft",
              "shadow": "key",
              "refractionEdge": true
            },
            "collapsed": false
          },
          {
            "id": "workspace",
            "kind": "group",
            "parentId": null,
            "x": 90,
            "y": 352,
            "width": 650,
            "height": 400,
            "title": "Группа нод",
            "body": "",
            "style": {
              "tier": "primary",
              "tint": "none",
              "radius": "lg",
              "border": "soft",
              "shadow": "ambient",
              "refractionEdge": true
            },
            "collapsed": false
          },
          {
            "id": "inside",
            "kind": "node",
            "parentId": "workspace",
            "x": 24,
            "y": 80,
            "width": 240,
            "height": 148,
            "title": "Вложенная нода",
            "body": "",
            "style": {
              "tier": "primary",
              "tint": "none",
              "radius": "lg",
              "border": "soft",
              "shadow": "key",
              "refractionEdge": true
            },
            "collapsed": false
          },
          {
            "id": "nested",
            "kind": "group",
            "parentId": "workspace",
            "x": 296,
            "y": 80,
            "width": 330,
            "height": 292,
            "title": "Вложенная группа",
            "body": "",
            "style": {
              "tier": "primary",
              "tint": "none",
              "radius": "lg",
              "border": "soft",
              "shadow": "none",
              "refractionEdge": true
            },
            "collapsed": false
          },
          {
            "id": "deep",
            "kind": "node",
            "parentId": "nested",
            "x": 24,
            "y": 80,
            "width": 282,
            "height": 164,
            "title": "Нода внутри группы",
            "body": "",
            "style": {
              "tier": "primary",
              "tint": "none",
              "radius": "lg",
              "border": "soft",
              "shadow": "key",
              "refractionEdge": true
            },
            "collapsed": false
          }
        ],
        "edges": [
          {
            "id": "glass-result",
            "source": "glass",
            "target": "result",
            "sourcePort": "right",
            "targetPort": "left",
            "label": "Связь",
            "route": "curve",
            "dashed": false
          },
          {
            "id": "result-deep",
            "source": "result",
            "target": "deep",
            "sourcePort": "bottom",
            "targetPort": "top",
            "label": "",
            "route": "curve",
            "dashed": false
          },
          {
            "id": "inside-deep",
            "source": "inside",
            "target": "deep",
            "sourcePort": "right",
            "targetPort": "left",
            "label": "",
            "route": "curve",
            "dashed": false
          }
        ],
        "unknown": true
      }
    },
    {
      "schema": "document",
      "name": "wrong-type",
      "valid": false,
      "input": []
    },
    {
      "schema": "node",
      "name": "valid",
      "valid": true,
      "input": {
        "id": "glass",
        "kind": "node",
        "parentId": null,
        "x": 90,
        "y": 100,
        "width": 256,
        "height": 164,
        "title": "Жидкое стекло",
        "body": "Пример содержимого",
        "style": {
          "tier": "primary",
          "tint": "none",
          "radius": "lg",
          "border": "soft",
          "shadow": "key",
          "refractionEdge": true
        },
        "collapsed": false
      }
    },
    {
      "schema": "node",
      "name": "unknown-field",
      "valid": false,
      "input": {
        "id": "glass",
        "kind": "node",
        "parentId": null,
        "x": 90,
        "y": 100,
        "width": 256,
        "height": 164,
        "title": "Жидкое стекло",
        "body": "Пример содержимого",
        "style": {
          "tier": "primary",
          "tint": "none",
          "radius": "lg",
          "border": "soft",
          "shadow": "key",
          "refractionEdge": true
        },
        "collapsed": false,
        "unknown": true
      }
    },
    {
      "schema": "node",
      "name": "wrong-type",
      "valid": false,
      "input": []
    },
    {
      "schema": "edge",
      "name": "valid",
      "valid": true,
      "input": {
        "id": "glass-result",
        "source": "glass",
        "target": "result",
        "sourcePort": "right",
        "targetPort": "left",
        "label": "Связь",
        "route": "curve",
        "dashed": false
      }
    },
    {
      "schema": "edge",
      "name": "unknown-field",
      "valid": false,
      "input": {
        "id": "glass-result",
        "source": "glass",
        "target": "result",
        "sourcePort": "right",
        "targetPort": "left",
        "label": "Связь",
        "route": "curve",
        "dashed": false,
        "unknown": true
      }
    },
    {
      "schema": "edge",
      "name": "wrong-type",
      "valid": false,
      "input": []
    },
    {
      "schema": "style",
      "name": "valid",
      "valid": true,
      "input": {
        "tier": "primary",
        "tint": "none",
        "radius": "lg",
        "border": "soft",
        "shadow": "key",
        "refractionEdge": true
      }
    },
    {
      "schema": "style",
      "name": "unknown-field",
      "valid": false,
      "input": {
        "tier": "primary",
        "tint": "none",
        "radius": "lg",
        "border": "soft",
        "shadow": "key",
        "refractionEdge": true,
        "unknown": true
      }
    },
    {
      "schema": "style",
      "name": "wrong-type",
      "valid": false,
      "input": []
    },
    {
      "schema": "command",
      "name": "valid",
      "valid": true,
      "input": {
        "version": 1,
        "graphId": "demo",
        "actorId": "fixture-user",
        "commandId": "move-1",
        "baseRevision": 0,
        "operation": {
          "type": "node.move",
          "id": "glass",
          "position": {
            "x": 120,
            "y": 140
          }
        }
      }
    },
    {
      "schema": "command",
      "name": "unknown-field",
      "valid": false,
      "input": {
        "version": 1,
        "graphId": "demo",
        "actorId": "fixture-user",
        "commandId": "move-1",
        "baseRevision": 0,
        "operation": {
          "type": "node.move",
          "id": "glass",
          "position": {
            "x": 120,
            "y": 140
          }
        },
        "unknown": true
      }
    },
    {
      "schema": "command",
      "name": "wrong-type",
      "valid": false,
      "input": []
    },
    {
      "schema": "event",
      "name": "valid",
      "valid": true,
      "input": {
        "version": 1,
        "type": "graph.command-applied",
        "graphId": "demo",
        "eventId": "move-1",
        "revision": 1,
        "command": {
          "version": 1,
          "graphId": "demo",
          "actorId": "fixture-user",
          "commandId": "move-1",
          "baseRevision": 0,
          "operation": {
            "type": "node.move",
            "id": "glass",
            "position": {
              "x": 120,
              "y": 140
            }
          }
        }
      }
    },
    {
      "schema": "event",
      "name": "unknown-field",
      "valid": false,
      "input": {
        "version": 1,
        "type": "graph.command-applied",
        "graphId": "demo",
        "eventId": "move-1",
        "revision": 1,
        "command": {
          "version": 1,
          "graphId": "demo",
          "actorId": "fixture-user",
          "commandId": "move-1",
          "baseRevision": 0,
          "operation": {
            "type": "node.move",
            "id": "glass",
            "position": {
              "x": 120,
              "y": 140
            }
          }
        },
        "unknown": true
      }
    },
    {
      "schema": "event",
      "name": "wrong-type",
      "valid": false,
      "input": []
    },
    {
      "schema": "state",
      "name": "valid",
      "valid": true,
      "input": {
        "version": 1,
        "graphId": "demo",
        "revision": 3,
        "document": {
          "version": 1,
          "nodes": [
            {
              "id": "glass",
              "kind": "node",
              "parentId": null,
              "x": 120,
              "y": 140,
              "width": 256,
              "height": 164,
              "title": "Persistent node",
              "body": "Пример содержимого",
              "style": {
                "tier": "primary",
                "tint": "cool",
                "radius": "lg",
                "border": "soft",
                "shadow": "key",
                "refractionEdge": true
              },
              "collapsed": false
            },
            {
              "id": "result",
              "kind": "node",
              "parentId": null,
              "x": 484,
              "y": 100,
              "width": 256,
              "height": 164,
              "title": "Нода",
              "body": "",
              "style": {
                "tier": "primary",
                "tint": "cool",
                "radius": "lg",
                "border": "soft",
                "shadow": "key",
                "refractionEdge": true
              },
              "collapsed": false
            },
            {
              "id": "workspace",
              "kind": "group",
              "parentId": null,
              "x": 90,
              "y": 352,
              "width": 650,
              "height": 400,
              "title": "Группа нод",
              "body": "",
              "style": {
                "tier": "primary",
                "tint": "none",
                "radius": "lg",
                "border": "soft",
                "shadow": "ambient",
                "refractionEdge": true
              },
              "collapsed": true
            },
            {
              "id": "inside",
              "kind": "node",
              "parentId": "workspace",
              "x": 24,
              "y": 80,
              "width": 240,
              "height": 148,
              "title": "Вложенная нода",
              "body": "",
              "style": {
                "tier": "primary",
                "tint": "none",
                "radius": "lg",
                "border": "soft",
                "shadow": "key",
                "refractionEdge": true
              },
              "collapsed": false
            },
            {
              "id": "nested",
              "kind": "group",
              "parentId": "workspace",
              "x": 296,
              "y": 80,
              "width": 330,
              "height": 292,
              "title": "Вложенная группа",
              "body": "",
              "style": {
                "tier": "primary",
                "tint": "none",
                "radius": "lg",
                "border": "soft",
                "shadow": "none",
                "refractionEdge": true
              },
              "collapsed": false
            },
            {
              "id": "deep",
              "kind": "node",
              "parentId": "nested",
              "x": 24,
              "y": 80,
              "width": 282,
              "height": 164,
              "title": "Нода внутри группы",
              "body": "",
              "style": {
                "tier": "primary",
                "tint": "none",
                "radius": "lg",
                "border": "soft",
                "shadow": "key",
                "refractionEdge": true
              },
              "collapsed": false
            }
          ],
          "edges": [
            {
              "id": "glass-result",
              "source": "glass",
              "target": "result",
              "sourcePort": "right",
              "targetPort": "left",
              "label": "Связь",
              "route": "curve",
              "dashed": false
            },
            {
              "id": "result-deep",
              "source": "result",
              "target": "deep",
              "sourcePort": "bottom",
              "targetPort": "top",
              "label": "",
              "route": "curve",
              "dashed": false
            },
            {
              "id": "inside-deep",
              "source": "inside",
              "target": "deep",
              "sourcePort": "right",
              "targetPort": "left",
              "label": "",
              "route": "curve",
              "dashed": false
            }
          ]
        },
        "receipts": [
          {
            "version": 1,
            "type": "graph.command-applied",
            "graphId": "demo",
            "eventId": "move-1",
            "revision": 1,
            "command": {
              "version": 1,
              "graphId": "demo",
              "actorId": "fixture-user",
              "commandId": "move-1",
              "baseRevision": 0,
              "operation": {
                "type": "node.move",
                "id": "glass",
                "position": {
                  "x": 120,
                  "y": 140
                }
              }
            }
          },
          {
            "version": 1,
            "type": "graph.command-applied",
            "graphId": "demo",
            "eventId": "title-1",
            "revision": 2,
            "command": {
              "version": 1,
              "graphId": "demo",
              "actorId": "fixture-user",
              "commandId": "title-1",
              "baseRevision": 1,
              "operation": {
                "type": "node.update",
                "id": "glass",
                "patch": {
                  "title": "Persistent node",
                  "style": {
                    "tint": "cool"
                  }
                }
              }
            }
          },
          {
            "version": 1,
            "type": "graph.command-applied",
            "graphId": "demo",
            "eventId": "collapse-1",
            "revision": 3,
            "command": {
              "version": 1,
              "graphId": "demo",
              "actorId": "fixture-user",
              "commandId": "collapse-1",
              "baseRevision": 2,
              "operation": {
                "type": "node.update",
                "id": "workspace",
                "patch": {
                  "collapsed": true
                }
              }
            }
          }
        ]
      }
    },
    {
      "schema": "state",
      "name": "unknown-field",
      "valid": false,
      "input": {
        "version": 1,
        "graphId": "demo",
        "revision": 3,
        "document": {
          "version": 1,
          "nodes": [
            {
              "id": "glass",
              "kind": "node",
              "parentId": null,
              "x": 120,
              "y": 140,
              "width": 256,
              "height": 164,
              "title": "Persistent node",
              "body": "Пример содержимого",
              "style": {
                "tier": "primary",
                "tint": "cool",
                "radius": "lg",
                "border": "soft",
                "shadow": "key",
                "refractionEdge": true
              },
              "collapsed": false
            },
            {
              "id": "result",
              "kind": "node",
              "parentId": null,
              "x": 484,
              "y": 100,
              "width": 256,
              "height": 164,
              "title": "Нода",
              "body": "",
              "style": {
                "tier": "primary",
                "tint": "cool",
                "radius": "lg",
                "border": "soft",
                "shadow": "key",
                "refractionEdge": true
              },
              "collapsed": false
            },
            {
              "id": "workspace",
              "kind": "group",
              "parentId": null,
              "x": 90,
              "y": 352,
              "width": 650,
              "height": 400,
              "title": "Группа нод",
              "body": "",
              "style": {
                "tier": "primary",
                "tint": "none",
                "radius": "lg",
                "border": "soft",
                "shadow": "ambient",
                "refractionEdge": true
              },
              "collapsed": true
            },
            {
              "id": "inside",
              "kind": "node",
              "parentId": "workspace",
              "x": 24,
              "y": 80,
              "width": 240,
              "height": 148,
              "title": "Вложенная нода",
              "body": "",
              "style": {
                "tier": "primary",
                "tint": "none",
                "radius": "lg",
                "border": "soft",
                "shadow": "key",
                "refractionEdge": true
              },
              "collapsed": false
            },
            {
              "id": "nested",
              "kind": "group",
              "parentId": "workspace",
              "x": 296,
              "y": 80,
              "width": 330,
              "height": 292,
              "title": "Вложенная группа",
              "body": "",
              "style": {
                "tier": "primary",
                "tint": "none",
                "radius": "lg",
                "border": "soft",
                "shadow": "none",
                "refractionEdge": true
              },
              "collapsed": false
            },
            {
              "id": "deep",
              "kind": "node",
              "parentId": "nested",
              "x": 24,
              "y": 80,
              "width": 282,
              "height": 164,
              "title": "Нода внутри группы",
              "body": "",
              "style": {
                "tier": "primary",
                "tint": "none",
                "radius": "lg",
                "border": "soft",
                "shadow": "key",
                "refractionEdge": true
              },
              "collapsed": false
            }
          ],
          "edges": [
            {
              "id": "glass-result",
              "source": "glass",
              "target": "result",
              "sourcePort": "right",
              "targetPort": "left",
              "label": "Связь",
              "route": "curve",
              "dashed": false
            },
            {
              "id": "result-deep",
              "source": "result",
              "target": "deep",
              "sourcePort": "bottom",
              "targetPort": "top",
              "label": "",
              "route": "curve",
              "dashed": false
            },
            {
              "id": "inside-deep",
              "source": "inside",
              "target": "deep",
              "sourcePort": "right",
              "targetPort": "left",
              "label": "",
              "route": "curve",
              "dashed": false
            }
          ]
        },
        "receipts": [
          {
            "version": 1,
            "type": "graph.command-applied",
            "graphId": "demo",
            "eventId": "move-1",
            "revision": 1,
            "command": {
              "version": 1,
              "graphId": "demo",
              "actorId": "fixture-user",
              "commandId": "move-1",
              "baseRevision": 0,
              "operation": {
                "type": "node.move",
                "id": "glass",
                "position": {
                  "x": 120,
                  "y": 140
                }
              }
            }
          },
          {
            "version": 1,
            "type": "graph.command-applied",
            "graphId": "demo",
            "eventId": "title-1",
            "revision": 2,
            "command": {
              "version": 1,
              "graphId": "demo",
              "actorId": "fixture-user",
              "commandId": "title-1",
              "baseRevision": 1,
              "operation": {
                "type": "node.update",
                "id": "glass",
                "patch": {
                  "title": "Persistent node",
                  "style": {
                    "tint": "cool"
                  }
                }
              }
            }
          },
          {
            "version": 1,
            "type": "graph.command-applied",
            "graphId": "demo",
            "eventId": "collapse-1",
            "revision": 3,
            "command": {
              "version": 1,
              "graphId": "demo",
              "actorId": "fixture-user",
              "commandId": "collapse-1",
              "baseRevision": 2,
              "operation": {
                "type": "node.update",
                "id": "workspace",
                "patch": {
                  "collapsed": true
                }
              }
            }
          }
        ],
        "unknown": true
      }
    },
    {
      "schema": "state",
      "name": "wrong-type",
      "valid": false,
      "input": []
    },
    {
      "schema": "document",
      "name": "dangling-reference-structurally-valid",
      "valid": true,
      "semanticValid": false,
      "input": {
        "version": 1,
        "nodes": [],
        "edges": [
          {
            "id": "glass-result",
            "source": "glass",
            "target": "result",
            "sourcePort": "right",
            "targetPort": "left",
            "label": "Связь",
            "route": "curve",
            "dashed": false
          }
        ]
      }
    },
    {
      "schema": "command",
      "name": "immutable-id",
      "valid": false,
      "input": {
        "version": 1,
        "graphId": "demo",
        "actorId": "fixture-user",
        "commandId": "move-1",
        "baseRevision": 0,
        "operation": {
          "type": "node.update",
          "id": "glass",
          "patch": {
            "id": "other"
          }
        }
      }
    },
    {
      "schema": "node",
      "name": "nonpositive-size",
      "valid": false,
      "input": {
        "id": "glass",
        "kind": "node",
        "parentId": null,
        "x": 90,
        "y": 100,
        "width": 0,
        "height": 164,
        "title": "Жидкое стекло",
        "body": "Пример содержимого",
        "style": {
          "tier": "primary",
          "tint": "none",
          "radius": "lg",
          "border": "soft",
          "shadow": "key",
          "refractionEdge": true
        },
        "collapsed": false
      }
    },
    {
      "schema": "command",
      "name": "unsafe-revision",
      "valid": false,
      "input": {
        "version": 1,
        "graphId": "demo",
        "actorId": "fixture-user",
        "commandId": "move-1",
        "baseRevision": 9007199254740992,
        "operation": {
          "type": "node.move",
          "id": "glass",
          "position": {
            "x": 120,
            "y": 140
          }
        }
      }
    }
  ]
}
