{
  "$schema": "http://json-schema.org/draft-07/schema#",
  "title": "Drop Calendar",
  "description": "Dated list of upcoming and past drops with a status tag.",
  "type": "object",
  "properties": {
    "heading": {
      "type": "string",
      "title": "Heading",
      "description": "Section headline.",
      "x-editor": "text"
    },
    "intro": {
      "type": "string",
      "title": "Intro",
      "description": "Optional standfirst line.",
      "x-editor": "textarea"
    },
    "drops": {
      "type": "array",
      "title": "Drops",
      "description": "The scheduled drops.",
      "default": [],
      "x-editor": "array",
      "items": {
        "type": "object",
        "properties": {
          "date": { "type": "string", "title": "Date", "description": "Dateline (e.g. \"14 MAR\").", "x-editor": "text" },
          "name": { "type": "string", "title": "Name", "description": "Drop name.", "x-editor": "text" },
          "detail": { "type": "string", "title": "Detail", "description": "Optional one-line detail.", "x-editor": "text" },
          "status": {
            "type": "string",
            "title": "Status",
            "description": "Availability tag.",
            "enum": ["live", "soon", "sold"],
            "default": "soon",
            "x-editor": "select"
          },
          "link": { "type": "string", "title": "Link", "description": "Optional link to the drop.", "x-editor": "link" },
          "linkLabel": { "type": "string", "title": "Link Label", "description": "Link label.", "x-editor": "text", "default": "View drop" }
        }
      }
    }
  }
}
