{
  "$schema": "https://json-schema.org/draft/2020-12/schema",
  "$id": "https://rehearse.kurvball.ca/schema/v1/check.schema.json",
  "title": "Rehearse v1: rehearse check --json",
  "description": "Whether rehearse.yaml reads well, how much it declares, and every scenario file Rehearse couldn't read. It exits 1 when a file was refused.",
  "type": "object",
  "required": [
    "v",
    "ok",
    "manifest",
    "checkout",
    "base",
    "services",
    "people",
    "worlds",
    "standins",
    "scenarios",
    "refused"
  ],
  "properties": {
    "v": {
      "$ref": "common.schema.json#/$defs/v"
    },
    "ok": {
      "type": "boolean"
    },
    "manifest": {
      "type": "string"
    },
    "checkout": {
      "type": "string"
    },
    "base": {
      "type": "string"
    },
    "services": {
      "type": "integer",
      "minimum": 0
    },
    "people": {
      "type": "integer",
      "minimum": 0
    },
    "worlds": {
      "type": "integer",
      "minimum": 0
    },
    "standins": {
      "type": "integer",
      "minimum": 0
    },
    "scenarios": {
      "description": "How many scenarios of each kind it read.",
      "type": "object",
      "additionalProperties": {
        "type": "integer",
        "minimum": 0
      }
    },
    "refused": {
      "type": "array",
      "items": {
        "$ref": "common.schema.json#/$defs/refused"
      }
    }
  }
}
