{
  "$schema": "http://json-schema.org/draft-07/schema#",
  "title": "Case Dossier",
  "description": "Long-form case spread with a sticky evidence rail and typed prose.",
  "type": "object",
  "properties": {
    "title": {
      "type": "string",
      "title": "Title",
      "description": "Case title.",
      "x-editor": "text"
    },
    "caseNumber": {
      "type": "string",
      "title": "Case Number",
      "description": "File reference (e.g. 'CF-0451').",
      "x-editor": "text"
    },
    "status": {
      "type": "string",
      "title": "Status",
      "description": "Status stamp shown on the rail.",
      "x-editor": "select",
      "enum": ["open", "active", "cold", "closed"],
      "default": "open"
    },
    "opened": {
      "type": "string",
      "title": "Opened",
      "description": "When the case was opened (e.g. 'March 1998').",
      "x-editor": "text"
    },
    "location": {
      "type": "string",
      "title": "Location",
      "description": "Case location.",
      "x-editor": "text"
    },
    "lead": {
      "type": "string",
      "title": "Lead Investigator",
      "description": "Name of the lead on the file.",
      "x-editor": "text"
    },
    "summary": {
      "type": "string",
      "title": "Summary",
      "description": "Opening summary of the case.",
      "x-editor": "textarea"
    },
    "images": {
      "type": "array",
      "title": "Images",
      "description": "Photographs in the case spread.",
      "x-editor": "array",
      "default": [],
      "items": { "type": "string", "x-editor": "media" }
    }
  }
}
