{
  "$schema": "https://json-schema.org/draft/2020-12/schema",
  "title": "FilmPass public education retrieval corpus",
  "type": "object",
  "required": [
    "version",
    "edition",
    "prepared",
    "scope",
    "pages"
  ],
  "properties": {
    "version": {
      "type": "string"
    },
    "edition": {
      "type": "string"
    },
    "prepared": {
      "type": "string",
      "format": "date"
    },
    "scope": {
      "type": "string"
    },
    "pages": {
      "type": "array",
      "items": {
        "type": "object",
        "required": [
          "id",
          "title",
          "sections"
        ],
        "properties": {
          "id": {
            "type": "string"
          },
          "title": {
            "type": "string"
          },
          "sections": {
            "type": "array",
            "items": {
              "type": "object",
              "required": [
                "id",
                "heading",
                "text",
                "sources",
                "interpretation",
                "diagrams"
              ],
              "properties": {
                "id": {
                  "type": "string"
                },
                "heading": {
                  "type": "string"
                },
                "text": {
                  "type": "string"
                },
                "sources": {
                  "type": "array",
                  "items": {
                    "type": "string"
                  }
                },
                "interpretation": {
                  "type": "string"
                },
                "diagrams": {
                  "type": "array",
                  "items": {
                    "type": "string"
                  }
                }
              }
            }
          }
        }
      }
    }
  }
}