{
  "$schema": "https://json-schema.org/draft/2020-12/schema",
  "$id": "https://rehearse.kurvball.ca/schema/v1/worlds.schema.json",
  "title": "Rehearse v1: rehearse worlds --json",
  "description": "The named starting states, each with the chain of worlds it is built from.",
  "type": "object",
  "required": ["v", "worlds"],
  "properties": {
    "v": { "$ref": "common.schema.json#/$defs/v" },
    "worlds": {
      "type": "array",
      "items": {
        "type": "object",
        "required": ["name", "chain", "default"],
        "properties": {
          "name": { "type": "string" },
          "describe": { "type": ["string", "null"] },
          "extends": { "type": ["string", "null"] },
          "chain": {
            "description": "The worlds applied in order, from the root to this one.",
            "type": "array",
            "items": { "type": "string" }
          },
          "add": {
            "description": "The command that adds this world on top of the one it extends.",
            "type": ["string", "null"]
          },
          "default": { "type": "boolean" }
        }
      }
    }
  }
}
