{
  "version": 1,
  "width": 720,
  "height": 400,
  "title": "Decision flow",
  "description": "Explain one decision and the two paths that follow. All values are illustrative example data.",
  "elements": [
    {
      "type": "text",
      "x": 36,
      "y": 39,
      "text": "Validate before accepting",
      "size": 17,
      "fill": "ink",
      "align": "start",
      "mono": false
    },
    {
      "type": "text",
      "x": 36,
      "y": 62,
      "text": "Request validation",
      "size": 11,
      "fill": "muted",
      "align": "start",
      "mono": true
    },
    {
      "type": "box",
      "x": 48,
      "y": 171,
      "w": 144,
      "h": 48,
      "fill": "surface",
      "stroke": "rule",
      "dashed": false
    },
    {
      "type": "text",
      "x": 120,
      "y": 200,
      "text": "Request",
      "size": 15,
      "fill": "ink",
      "align": "middle",
      "mono": false
    },
    {
      "type": "line",
      "x": 192,
      "y": 195,
      "x2": 276,
      "y2": 195,
      "arrow": true,
      "dashed": false,
      "stroke": "rule"
    },
    {
      "type": "path",
      "d": "M360 131 L444 195 L360 259 L276 195 Z",
      "stroke": "accent",
      "fill": "soft",
      "arrow": false
    },
    {
      "type": "text",
      "x": 360,
      "y": 191,
      "text": "Valid?",
      "size": 16,
      "fill": "ink",
      "align": "middle",
      "mono": false
    },
    {
      "type": "text",
      "x": 360,
      "y": 214,
      "text": "schema + auth",
      "size": 10,
      "fill": "muted",
      "align": "middle",
      "mono": false
    },
    {
      "type": "path",
      "d": "M444 195 H485 V122 H530",
      "stroke": "accent",
      "fill": "none",
      "arrow": true
    },
    {
      "type": "path",
      "d": "M360 259 V310 H530",
      "stroke": "accent",
      "fill": "none",
      "arrow": true
    },
    {
      "type": "box",
      "x": 534,
      "y": 98,
      "w": 138,
      "h": 48,
      "fill": "soft",
      "stroke": "accent",
      "dashed": false
    },
    {
      "type": "text",
      "x": 603,
      "y": 127,
      "text": "Accept",
      "size": 15,
      "fill": "ink",
      "align": "middle",
      "mono": false
    },
    {
      "type": "box",
      "x": 534,
      "y": 286,
      "w": 138,
      "h": 48,
      "fill": "surface",
      "stroke": "rule",
      "dashed": false
    },
    {
      "type": "text",
      "x": 603,
      "y": 315,
      "text": "Reject",
      "size": 15,
      "fill": "ink",
      "align": "middle",
      "mono": false
    },
    {
      "type": "text",
      "x": 474,
      "y": 107,
      "text": "yes",
      "size": 11,
      "fill": "muted",
      "align": "start",
      "mono": false
    },
    {
      "type": "text",
      "x": 395,
      "y": 298,
      "text": "no",
      "size": 11,
      "fill": "muted",
      "align": "start",
      "mono": false
    }
  ]
}