{
  "$schema": "urn:blatent:json-schema:template-draft-v1",
  "type": "array",
  "maxItems": 4,
  "x-runtime": {
    "forEach": {
      "ref": "state/checks",
      "as": "check"
    }
  },
  "items": {
    "type": "object",
    "properties": {
      "route": {
        "enum": [
          "automatic",
          "review"
        ]
      },
      "id": {
        "x-runtime": {
          "bind": {
            "const": {
              "ref": "check/id"
            }
          }
        }
      },
      "answer": {
        "type": "boolean",
        "x-runtime": {
          "probabilities": true,
          "bind": {
            "description": {
              "ref": "check/description"
            }
          }
        }
      }
    },
    "required": [
      "id",
      "answer",
      "route"
    ],
    "additionalProperties": false,
    "x-runtime": {
      "switch": {
        "on": {
          "probability": {
            "path": "/answer"
          }
        },
        "cases": [
          {
            "when": {
              "gte": 0.95
            },
            "then": {
              "properties": {
                "route": {
                  "const": "automatic"
                }
              }
            }
          }
        ],
        "default": {
          "properties": {
            "route": {
              "const": "review"
            }
          }
        }
      }
    }
  }
}
