{
  "$schema": "https://json-schema.org/draft/2020-12/schema",
  "$id": "https://spec.super-arc.com/0.1.0/work.json",
  "title": "Work",
  "description": "A Work 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",
    "medium"
  ],
  "properties": {
    "id": {
      "$ref": "common.json#/$defs/id"
    },
    "specType": {
      "const": "work"
    },
    "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"
    },
    "medium": {
      "type": "string",
      "description": "novel | screen | game | graphic | other. Free text in v0."
    },
    "logline": {
      "type": [
        "object",
        "null"
      ],
      "description": "One sentence: who wants what, and what stands in the way.",
      "properties": {
        "text": {
          "type": "string"
        }
      }
    },
    "premise": {
      "type": [
        "object",
        "null"
      ],
      "description": "The situation the story starts from.",
      "properties": {
        "text": {
          "type": "string"
        }
      }
    },
    "themes": {
      "type": [
        "object",
        "null"
      ],
      "description": "What the work is about underneath the plot.",
      "properties": {
        "items": {
          "type": "array",
          "items": {
            "type": "string"
          }
        }
      }
    },
    "pov": {
      "type": [
        "object",
        "null"
      ],
      "description": "Narrative point of view and tense.",
      "properties": {
        "person": {
          "type": "string"
        },
        "tense": {
          "type": "string"
        },
        "notes": {
          "type": "string"
        }
      }
    },
    "tone": {
      "type": [
        "object",
        "null"
      ],
      "description": "Register and feel.",
      "properties": {
        "text": {
          "type": "string"
        }
      }
    },
    "spine": {
      "type": [
        "object",
        "null"
      ],
      "description": "The through-line, act by act.",
      "properties": {
        "beats": {
          "type": "array",
          "items": {
            "type": "string"
          }
        }
      }
    },
    "audience": {
      "type": [
        "object",
        "null"
      ],
      "description": "Who this is for.",
      "properties": {
        "audience": {
          "$ref": "common.json#/$defs/ref"
        },
        "notes": {
          "type": "string"
        }
      }
    }
  },
  "x-depthOrder": [
    "logline",
    "premise",
    "themes",
    "pov",
    "tone",
    "spine",
    "audience"
  ]
}
