{
  "$schema": "https://json-schema.org/draft/2020-12/schema",
  "$id": "https://spec.super-arc.com/0.1.0/world.json",
  "title": "World",
  "description": "A World in the Narrative Spec. Required core is deliberately tiny: a stub is valid, and depth is scored rather than demanded. Depth groups are the optional top-level objects below; a group is started when its key is present and its value is a non-null object, including {}.",
  "type": "object",
  "required": [
    "id",
    "specType",
    "specVersion",
    "name",
    "summary"
  ],
  "properties": {
    "id": {
      "$ref": "common.json#/$defs/id"
    },
    "specType": {
      "const": "world"
    },
    "specVersion": {
      "$ref": "common.json#/$defs/specVersion"
    },
    "name": {
      "type": "string",
      "minLength": 1,
      "description": "Display name. May change; the slug in id may not."
    },
    "status": {
      "$ref": "common.json#/$defs/status"
    },
    "extensions": {
      "$ref": "common.json#/$defs/extensions"
    },
    "summary": {
      "type": "string",
      "description": "One paragraph a reader could hold in their head."
    },
    "geography": {
      "type": [
        "object",
        "null"
      ],
      "description": "Where things are and what that costs to cross.",
      "properties": {
        "regions": {
          "type": "array",
          "items": {
            "type": "string"
          }
        },
        "notes": {
          "type": "string"
        }
      }
    },
    "history": {
      "type": [
        "object",
        "null"
      ],
      "description": "What happened before page one.",
      "properties": {
        "events": {
          "type": "array",
          "items": {
            "$ref": "common.json#/$defs/ref"
          }
        },
        "notes": {
          "type": "string"
        }
      }
    },
    "cultures": {
      "type": [
        "object",
        "null"
      ],
      "description": "Who lives here and how.",
      "properties": {
        "items": {
          "type": "array",
          "items": {
            "type": "string"
          }
        }
      }
    },
    "calendar": {
      "type": [
        "object",
        "null"
      ],
      "description": "How time is counted.",
      "properties": {
        "epochs": {
          "type": "array",
          "items": {
            "type": "string"
          }
        },
        "notes": {
          "type": "string"
        }
      }
    },
    "physics": {
      "type": [
        "object",
        "null"
      ],
      "description": "What is possible here that is not possible here.",
      "properties": {
        "ruleset": {
          "$ref": "common.json#/$defs/ref"
        },
        "notes": {
          "type": "string"
        }
      }
    },
    "technologyLevel": {
      "type": [
        "object",
        "null"
      ],
      "description": "What tools exist, and who has them.",
      "properties": {
        "text": {
          "type": "string"
        }
      }
    }
  },
  "x-depthOrder": [
    "geography",
    "history",
    "cultures",
    "calendar",
    "physics",
    "technologyLevel"
  ]
}
