{
  "$schema": "http://json-schema.org/draft-07/schema#",
  "$ref": "#/definitions/SetupAgentsReleaseCheckResult",
  "definitions": {
    "SetupAgentsReleaseCheckResult": {
      "type": "object",
      "properties": {
        "report": {
          "$ref": "#/definitions/ReleaseCheckReport"
        },
        "cwd": {
          "type": "string"
        }
      },
      "required": ["report", "cwd"],
      "additionalProperties": false
    },
    "ReleaseCheckReport": {
      "type": "object",
      "properties": {
        "taskId": {
          "type": "string"
        },
        "checks": {
          "type": "array",
          "items": {
            "$ref": "#/definitions/ReleaseCheckResult"
          }
        },
        "overallPass": {
          "type": "boolean"
        },
        "runAt": {
          "type": "string"
        }
      },
      "required": ["taskId", "checks", "overallPass", "runAt"],
      "additionalProperties": false
    },
    "ReleaseCheckResult": {
      "type": "object",
      "properties": {
        "name": {
          "type": "string"
        },
        "status": {
          "type": "string",
          "enum": ["pass", "warn", "fail"]
        },
        "blocking": {
          "type": "boolean"
        },
        "detail": {
          "type": "string"
        },
        "evidenceId": {
          "type": "string"
        }
      },
      "required": ["name", "status", "blocking", "detail"],
      "additionalProperties": false
    }
  }
}
