{
  "$schema": "https://json-schema.org/draft/2020-12/schema",
  "$id": "https://rehearse.kurvball.ca/schema/v1/try.schema.json",
  "title": "Rehearse v1: one person's try",
  "description": "A line of .rehearse/tries.jsonl: what a person said about a scenario on the stage. It is a person's evidence for a review.",
  "type": "object",
  "required": ["v", "scenario", "works", "note", "mode", "at"],
  "properties": {
    "v": {
      "$ref": "common.schema.json#/$defs/v"
    },
    "scenario": {
      "type": "string"
    },
    "works": {
      "description": "true for Works, false for Doesn't.",
      "type": "boolean"
    },
    "note": {
      "type": "string"
    },
    "world": {
      "type": ["string", "null"]
    },
    "person": {
      "$ref": "common.schema.json#/$defs/person"
    },
    "mode": {
      "description": "What the person was looking at. More may come.",
      "type": "string",
      "examples": ["base", "head", "diff"]
    },
    "verdict": {
      "oneOf": [
        {
          "$ref": "common.schema.json#/$defs/verdict"
        },
        {
          "type": "null"
        }
      ]
    },
    "base": {
      "description": "The base commit.",
      "type": ["string", "null"]
    },
    "head": {
      "description": "The head commit.",
      "type": ["string", "null"]
    },
    "at": {
      "type": "string",
      "format": "date-time"
    }
  }
}
