{
  "$schema": "http://json-schema.org/draft-07/schema#",
  "title": "Reading List",
  "description": "A curated further-reading list rendered under a small-caps heading, each entry a hairline-ruled link with an optional note and source.",
  "type": "object",
  "properties": {
    "title": {
      "type": "string",
      "title": "Heading",
      "description": "Small-caps section heading (e.g. \"Further reading\").",
      "x-editor": "text",
      "default": "Further reading"
    },
    "intro": {
      "type": "string",
      "title": "Intro",
      "description": "Optional short line of context above the list.",
      "x-editor": "textarea"
    },
    "items": {
      "type": "array",
      "title": "Entries",
      "description": "The reading-list entries.",
      "default": [],
      "x-editor": "array",
      "items": {
        "type": "object",
        "properties": {
          "label": {
            "type": "string",
            "title": "Title",
            "description": "The title of the piece.",
            "x-editor": "text"
          },
          "url": {
            "type": "string",
            "title": "URL",
            "description": "Where the entry links to.",
            "x-editor": "link"
          },
          "source": {
            "type": "string",
            "title": "Source",
            "description": "Optional author or publication, rendered in small caps.",
            "x-editor": "text"
          },
          "note": {
            "type": "string",
            "title": "Note",
            "description": "Optional one-line note on why it is worth reading.",
            "x-editor": "text"
          }
        }
      }
    }
  }
}
