{
  "$schema": "https://json-schema.org/draft/2020-12/schema",
  "$id": "https://rehearse.kurvball.ca/schema/v1/announce.schema.json",
  "title": "Rehearse v1: an announcement",
  "description": "The scenarios a change expects to change, each with one line saying why. Written in YAML or JSON, by default at .rehearse/announce.yaml beside rehearse.yaml.",
  "type": "object",
  "required": ["changes"],
  "properties": {
    "v": { "$ref": "common.schema.json#/$defs/v" },
    "changes": {
      "type": "array",
      "items": {
        "type": "object",
        "required": ["scenario", "why"],
        "properties": {
          "scenario": {
            "description": "A scenario's id, or a glob over ids (* stops at /, ** does not).",
            "type": "string",
            "minLength": 1
          },
          "why": { "description": "One line: what changes, and why.", "type": "string", "minLength": 1 }
        },
        "additionalProperties": false
      }
    }
  },
  "additionalProperties": false
}
