{
  "$schema": "https://json-schema.org/draft/2020-12/schema",
  "additionalProperties": false,
  "properties": {
    "articles": {
      "items": {
        "additionalProperties": false,
        "properties": {
          "category": {
            "enum": [
              "history",
              "philosophy",
              "science",
              "literature",
              "art-and-culture",
              "music",
              "language"
            ],
            "type": "string"
          },
          "date": {
            "pattern": "^\\d{4}-\\d{2}-\\d{2}$",
            "type": "string"
          },
          "datings": {
            "items": {
              "additionalProperties": false,
              "properties": {
                "grade": {
                  "enum": [
                    "A",
                    "B",
                    "C",
                    "D",
                    "E"
                  ],
                  "type": "string"
                },
                "label": {
                  "type": "string"
                },
                "method": {
                  "enum": [
                    "archaeological-radiocarbon",
                    "archaeological-stratigraphic",
                    "luminescence",
                    "epigraphic",
                    "numismatic",
                    "foreign-synchronism",
                    "textual-internal",
                    "linguistic",
                    "astronomical-reference",
                    "art-historical",
                    "genetic",
                    "geological",
                    "documentary",
                    "scholarly-consensus",
                    "traditional-puranic",
                    "traditional-siddhantic",
                    "traditional-sampradaya"
                  ],
                  "type": "string"
                },
                "note": {
                  "type": "string"
                },
                "primaryReason": {
                  "minLength": 10,
                  "type": "string"
                },
                "range": {
                  "additionalProperties": false,
                  "properties": {
                    "best": {
                      "type": "number"
                    },
                    "circa": {
                      "type": "boolean"
                    },
                    "earliest": {
                      "type": "number"
                    },
                    "latest": {
                      "type": "number"
                    },
                    "precision": {
                      "enum": [
                        "day",
                        "year",
                        "decade",
                        "century",
                        "millennium",
                        "ka",
                        "Ma",
                        "cosmological"
                      ],
                      "type": "string"
                    }
                  },
                  "required": [
                    "earliest",
                    "latest",
                    "precision",
                    "circa"
                  ],
                  "type": "object"
                },
                "sources": {
                  "items": {
                    "anyOf": [
                      {
                        "pattern": "^src\\.[a-z0-9]+(?:-[a-z0-9]+)*$",
                        "type": "string"
                      },
                      {
                        "additionalProperties": false,
                        "properties": {
                          "id": {
                            "pattern": "^src\\.[a-z0-9]+(?:-[a-z0-9]+)*$",
                            "type": "string"
                          },
                          "locator": {
                            "minLength": 1,
                            "type": "string"
                          }
                        },
                        "required": [
                          "id"
                        ],
                        "type": "object"
                      }
                    ]
                  },
                  "minItems": 1,
                  "type": "array"
                }
              },
              "required": [
                "method",
                "range",
                "grade",
                "sources"
              ],
              "type": "object"
            },
            "minItems": 1,
            "type": "array"
          },
          "entities": {
            "default": [],
            "items": {
              "pattern": "^(event|person|text|site|polity|artifact|tradition|concept|cosmology)\\.[a-z0-9]+(?:-[a-z0-9]+)*$",
              "type": "string"
            },
            "type": "array"
          },
          "file": {
            "type": "string"
          },
          "inlineCitations": {
            "items": {
              "additionalProperties": false,
              "properties": {
                "id": {
                  "pattern": "^src\\.[a-z0-9]+(?:-[a-z0-9]+)*$",
                  "type": "string"
                },
                "locator": {
                  "type": "string"
                }
              },
              "required": [
                "id"
              ],
              "type": "object"
            },
            "type": "array"
          },
          "readingLevel": {
            "default": "adult",
            "enum": [
              "kids",
              "teen",
              "adult"
            ],
            "type": "string"
          },
          "review": {
            "additionalProperties": false,
            "properties": {
              "author": {
                "type": "string"
              },
              "lastReviewed": {
                "default": null,
                "type": [
                  "string",
                  "null"
                ]
              },
              "reviewer": {
                "default": null,
                "type": [
                  "string",
                  "null"
                ]
              },
              "status": {
                "enum": [
                  "draft",
                  "machine-checked",
                  "reviewed",
                  "published"
                ],
                "type": "string"
              }
            },
            "required": [
              "status",
              "reviewer",
              "lastReviewed"
            ],
            "type": "object"
          },
          "slug": {
            "pattern": "^[a-z0-9]+(?:-[a-z0-9]+)*$",
            "type": "string"
          },
          "summary": {
            "maxLength": 400,
            "minLength": 20,
            "type": "string"
          },
          "tags": {
            "default": [],
            "items": {
              "type": "string"
            },
            "type": "array"
          },
          "title": {
            "minLength": 3,
            "type": "string"
          },
          "updated": {
            "pattern": "^\\d{4}-\\d{2}-\\d{2}$",
            "type": "string"
          }
        },
        "required": [
          "title",
          "summary",
          "date",
          "tags",
          "datings",
          "entities",
          "readingLevel",
          "review",
          "category",
          "slug",
          "file",
          "inlineCitations"
        ],
        "type": "object"
      },
      "type": "array"
    },
    "corrections": {
      "items": {
        "additionalProperties": false,
        "properties": {
          "after": {
            "minLength": 1,
            "type": "string"
          },
          "before": {
            "minLength": 1,
            "type": "string"
          },
          "date": {
            "pattern": "^\\d{4}-\\d{2}-\\d{2}$",
            "type": "string"
          },
          "reason": {
            "minLength": 10,
            "type": "string"
          },
          "sources": {
            "default": [],
            "items": {
              "anyOf": [
                {
                  "pattern": "^src\\.[a-z0-9]+(?:-[a-z0-9]+)*$",
                  "type": "string"
                },
                {
                  "additionalProperties": false,
                  "properties": {
                    "id": {
                      "pattern": "^src\\.[a-z0-9]+(?:-[a-z0-9]+)*$",
                      "type": "string"
                    },
                    "locator": {
                      "minLength": 1,
                      "type": "string"
                    }
                  },
                  "required": [
                    "id"
                  ],
                  "type": "object"
                }
              ]
            },
            "type": "array"
          },
          "target": {
            "minLength": 1,
            "type": "string"
          }
        },
        "required": [
          "date",
          "target",
          "before",
          "after",
          "reason",
          "sources"
        ],
        "type": "object"
      },
      "type": "array"
    },
    "debates": {
      "items": {
        "additionalProperties": false,
        "properties": {
          "alternates": {
            "items": {
              "minLength": 1,
              "type": "string"
            },
            "type": "array"
          },
          "approval": {
            "additionalProperties": false,
            "properties": {
              "by": {
                "minLength": 2,
                "type": "string"
              },
              "date": {
                "pattern": "^\\d{4}-\\d{2}-\\d{2}$",
                "type": "string"
              },
              "note": {
                "type": "string"
              }
            },
            "required": [
              "by",
              "date"
            ],
            "type": "object"
          },
          "commonGround": {
            "default": [],
            "items": {
              "additionalProperties": false,
              "properties": {
                "grade": {
                  "enum": [
                    "A",
                    "B",
                    "C",
                    "D",
                    "E"
                  ],
                  "type": "string"
                },
                "sources": {
                  "items": {
                    "additionalProperties": false,
                    "properties": {
                      "id": {
                        "pattern": "^src\\.[a-z0-9]+(?:-[a-z0-9]+)*$",
                        "type": "string"
                      },
                      "locator": {
                        "minLength": 1,
                        "type": "string"
                      }
                    },
                    "required": [
                      "id",
                      "locator"
                    ],
                    "type": "object"
                  },
                  "minItems": 1,
                  "type": "array"
                },
                "text": {
                  "minLength": 20,
                  "type": "string"
                }
              },
              "required": [
                "text",
                "grade",
                "sources"
              ],
              "type": "object"
            },
            "type": "array"
          },
          "id": {
            "pattern": "^debate\\.[a-z0-9]+(?:-[a-z0-9]+)*$",
            "type": "string"
          },
          "positions": {
            "items": {
              "additionalProperties": false,
              "properties": {
                "evidence": {
                  "items": {
                    "additionalProperties": false,
                    "properties": {
                      "grade": {
                        "enum": [
                          "A",
                          "B",
                          "C",
                          "D",
                          "E"
                        ],
                        "type": "string"
                      },
                      "sources": {
                        "items": {
                          "additionalProperties": false,
                          "properties": {
                            "id": {
                              "pattern": "^src\\.[a-z0-9]+(?:-[a-z0-9]+)*$",
                              "type": "string"
                            },
                            "locator": {
                              "minLength": 1,
                              "type": "string"
                            }
                          },
                          "required": [
                            "id",
                            "locator"
                          ],
                          "type": "object"
                        },
                        "minItems": 1,
                        "type": "array"
                      },
                      "text": {
                        "minLength": 20,
                        "type": "string"
                      }
                    },
                    "required": [
                      "text",
                      "grade",
                      "sources"
                    ],
                    "type": "object"
                  },
                  "minItems": 1,
                  "type": "array"
                },
                "grade": {
                  "enum": [
                    "A",
                    "B",
                    "C",
                    "D",
                    "E"
                  ],
                  "type": "string"
                },
                "id": {
                  "pattern": "^[a-z0-9]+(?:-[a-z0-9]+)*$",
                  "type": "string"
                },
                "label": {
                  "minLength": 3,
                  "type": "string"
                },
                "lens": {
                  "enum": [
                    "scholarship",
                    "tradition"
                  ],
                  "type": "string"
                },
                "objections": {
                  "default": [],
                  "items": {
                    "minLength": 10,
                    "type": "string"
                  },
                  "type": "array"
                },
                "proponents": {
                  "items": {
                    "additionalProperties": false,
                    "properties": {
                      "name": {
                        "minLength": 3,
                        "type": "string"
                      },
                      "role": {
                        "minLength": 3,
                        "type": "string"
                      },
                      "work": {
                        "anyOf": [
                          {
                            "pattern": "^src\\.[a-z0-9]+(?:-[a-z0-9]+)*$",
                            "type": "string"
                          },
                          {
                            "additionalProperties": false,
                            "properties": {
                              "id": {
                                "pattern": "^src\\.[a-z0-9]+(?:-[a-z0-9]+)*$",
                                "type": "string"
                              },
                              "locator": {
                                "minLength": 1,
                                "type": "string"
                              }
                            },
                            "required": [
                              "id"
                            ],
                            "type": "object"
                          }
                        ]
                      }
                    },
                    "required": [
                      "name"
                    ],
                    "type": "object"
                  },
                  "minItems": 1,
                  "type": "array"
                },
                "range": {
                  "additionalProperties": false,
                  "properties": {
                    "best": {
                      "type": "number"
                    },
                    "circa": {
                      "type": "boolean"
                    },
                    "earliest": {
                      "type": "number"
                    },
                    "latest": {
                      "type": "number"
                    },
                    "precision": {
                      "enum": [
                        "day",
                        "year",
                        "decade",
                        "century",
                        "millennium",
                        "ka",
                        "Ma",
                        "cosmological"
                      ],
                      "type": "string"
                    }
                  },
                  "required": [
                    "earliest",
                    "latest",
                    "precision",
                    "circa"
                  ],
                  "type": "object"
                },
                "statement": {
                  "maxLength": 1500,
                  "minLength": 40,
                  "type": "string"
                }
              },
              "required": [
                "id",
                "label",
                "lens",
                "statement",
                "grade",
                "proponents",
                "evidence",
                "objections"
              ],
              "type": "object"
            },
            "minItems": 2,
            "type": "array"
          },
          "published": {
            "default": false,
            "type": "boolean"
          },
          "question": {
            "minLength": 10,
            "pattern": "\\?$",
            "type": "string"
          },
          "relatedArticles": {
            "default": [],
            "items": {
              "pattern": "^(history|philosophy|science|literature|art-and-culture|music|language)\\/[a-z0-9]+(?:-[a-z0-9]+)*$",
              "type": "string"
            },
            "type": "array"
          },
          "relatedEntities": {
            "items": {
              "pattern": "^(event|person|text|site|polity|artifact|tradition|concept|cosmology)\\.[a-z0-9]+(?:-[a-z0-9]+)*$",
              "type": "string"
            },
            "minItems": 1,
            "type": "array"
          },
          "review": {
            "additionalProperties": false,
            "properties": {
              "author": {
                "type": "string"
              },
              "lastReviewed": {
                "default": null,
                "type": [
                  "string",
                  "null"
                ]
              },
              "reviewer": {
                "default": null,
                "type": [
                  "string",
                  "null"
                ]
              },
              "status": {
                "enum": [
                  "draft",
                  "machine-checked",
                  "reviewed",
                  "published"
                ],
                "type": "string"
              }
            },
            "required": [
              "status",
              "reviewer",
              "lastReviewed"
            ],
            "type": "object"
          },
          "summary": {
            "maxLength": 1200,
            "minLength": 20,
            "type": "string"
          },
          "tags": {
            "default": [],
            "items": {
              "type": "string"
            },
            "type": "array"
          },
          "title": {
            "minLength": 3,
            "type": "string"
          },
          "whatWouldChangeThis": {
            "items": {
              "minLength": 20,
              "type": "string"
            },
            "minItems": 1,
            "type": "array"
          }
        },
        "required": [
          "id",
          "title",
          "question",
          "summary",
          "published",
          "commonGround",
          "positions",
          "whatWouldChangeThis",
          "relatedEntities",
          "relatedArticles",
          "tags",
          "review"
        ],
        "type": "object"
      },
      "type": "array"
    },
    "entities": {
      "items": {
        "additionalProperties": false,
        "properties": {
          "aliases": {
            "default": [],
            "items": {
              "pattern": "^(event|person|text|site|polity|artifact|tradition|concept|cosmology)\\.[a-z0-9]+(?:-[a-z0-9]+)*$",
              "type": "string"
            },
            "type": "array"
          },
          "claims": {
            "default": [],
            "items": {
              "additionalProperties": false,
              "properties": {
                "grade": {
                  "enum": [
                    "A",
                    "B",
                    "C",
                    "D",
                    "E"
                  ],
                  "type": "string"
                },
                "sources": {
                  "items": {
                    "anyOf": [
                      {
                        "pattern": "^src\\.[a-z0-9]+(?:-[a-z0-9]+)*$",
                        "type": "string"
                      },
                      {
                        "additionalProperties": false,
                        "properties": {
                          "id": {
                            "pattern": "^src\\.[a-z0-9]+(?:-[a-z0-9]+)*$",
                            "type": "string"
                          },
                          "locator": {
                            "minLength": 1,
                            "type": "string"
                          }
                        },
                        "required": [
                          "id"
                        ],
                        "type": "object"
                      }
                    ]
                  },
                  "minItems": 1,
                  "type": "array"
                },
                "text": {
                  "minLength": 10,
                  "type": "string"
                }
              },
              "required": [
                "text",
                "grade",
                "sources"
              ],
              "type": "object"
            },
            "type": "array"
          },
          "datings": {
            "items": {
              "additionalProperties": false,
              "properties": {
                "grade": {
                  "enum": [
                    "A",
                    "B",
                    "C",
                    "D",
                    "E"
                  ],
                  "type": "string"
                },
                "label": {
                  "type": "string"
                },
                "method": {
                  "enum": [
                    "archaeological-radiocarbon",
                    "archaeological-stratigraphic",
                    "luminescence",
                    "epigraphic",
                    "numismatic",
                    "foreign-synchronism",
                    "textual-internal",
                    "linguistic",
                    "astronomical-reference",
                    "art-historical",
                    "genetic",
                    "geological",
                    "documentary",
                    "scholarly-consensus",
                    "traditional-puranic",
                    "traditional-siddhantic",
                    "traditional-sampradaya"
                  ],
                  "type": "string"
                },
                "note": {
                  "type": "string"
                },
                "primaryReason": {
                  "minLength": 10,
                  "type": "string"
                },
                "range": {
                  "additionalProperties": false,
                  "properties": {
                    "best": {
                      "type": "number"
                    },
                    "circa": {
                      "type": "boolean"
                    },
                    "earliest": {
                      "type": "number"
                    },
                    "latest": {
                      "type": "number"
                    },
                    "precision": {
                      "enum": [
                        "day",
                        "year",
                        "decade",
                        "century",
                        "millennium",
                        "ka",
                        "Ma",
                        "cosmological"
                      ],
                      "type": "string"
                    }
                  },
                  "required": [
                    "earliest",
                    "latest",
                    "precision",
                    "circa"
                  ],
                  "type": "object"
                },
                "sources": {
                  "items": {
                    "anyOf": [
                      {
                        "pattern": "^src\\.[a-z0-9]+(?:-[a-z0-9]+)*$",
                        "type": "string"
                      },
                      {
                        "additionalProperties": false,
                        "properties": {
                          "id": {
                            "pattern": "^src\\.[a-z0-9]+(?:-[a-z0-9]+)*$",
                            "type": "string"
                          },
                          "locator": {
                            "minLength": 1,
                            "type": "string"
                          }
                        },
                        "required": [
                          "id"
                        ],
                        "type": "object"
                      }
                    ]
                  },
                  "minItems": 1,
                  "type": "array"
                }
              },
              "required": [
                "method",
                "range",
                "grade",
                "sources"
              ],
              "type": "object"
            },
            "minItems": 1,
            "type": "array"
          },
          "debate": {
            "type": "string"
          },
          "extents": {
            "items": {
              "additionalProperties": false,
              "properties": {
                "from": {
                  "type": "number"
                },
                "grade": {
                  "enum": [
                    "A",
                    "B",
                    "C",
                    "D",
                    "E"
                  ],
                  "type": "string"
                },
                "label": {
                  "minLength": 1,
                  "type": "string"
                },
                "note": {
                  "type": "string"
                },
                "polygon": {
                  "items": {
                    "items": false,
                    "maxItems": 2,
                    "minItems": 2,
                    "prefixItems": [
                      {
                        "maximum": 180,
                        "minimum": -180,
                        "type": "number"
                      },
                      {
                        "maximum": 90,
                        "minimum": -90,
                        "type": "number"
                      }
                    ],
                    "type": "array"
                  },
                  "maxItems": 400,
                  "minItems": 3,
                  "type": "array"
                },
                "sources": {
                  "items": {
                    "anyOf": [
                      {
                        "pattern": "^src\\.[a-z0-9]+(?:-[a-z0-9]+)*$",
                        "type": "string"
                      },
                      {
                        "additionalProperties": false,
                        "properties": {
                          "id": {
                            "pattern": "^src\\.[a-z0-9]+(?:-[a-z0-9]+)*$",
                            "type": "string"
                          },
                          "locator": {
                            "minLength": 1,
                            "type": "string"
                          }
                        },
                        "required": [
                          "id"
                        ],
                        "type": "object"
                      }
                    ]
                  },
                  "minItems": 1,
                  "type": "array"
                },
                "to": {
                  "type": "number"
                }
              },
              "required": [
                "polygon",
                "grade",
                "sources"
              ],
              "type": "object"
            },
            "type": "array"
          },
          "id": {
            "pattern": "^(event|person|text|site|polity|artifact|tradition|concept|cosmology)\\.[a-z0-9]+(?:-[a-z0-9]+)*$",
            "type": "string"
          },
          "image": {
            "additionalProperties": false,
            "properties": {
              "alt": {
                "minLength": 5,
                "type": "string"
              },
              "commons": {
                "pattern": "^File:.+",
                "type": "string"
              },
              "credit": {
                "minLength": 2,
                "type": "string"
              },
              "license": {
                "minLength": 2,
                "type": "string"
              }
            },
            "required": [
              "commons",
              "alt",
              "credit",
              "license"
            ],
            "type": "object"
          },
          "kind": {
            "enum": [
              "cosmology",
              "prehistory",
              "civilisation",
              "polity",
              "text",
              "person",
              "science",
              "art",
              "dharma",
              "site",
              "event"
            ],
            "type": "string"
          },
          "location": {
            "additionalProperties": false,
            "properties": {
              "lat": {
                "maximum": 90,
                "minimum": -90,
                "type": "number"
              },
              "lon": {
                "maximum": 180,
                "minimum": -180,
                "type": "number"
              },
              "name": {
                "minLength": 1,
                "type": "string"
              }
            },
            "required": [
              "name",
              "lat",
              "lon"
            ],
            "type": "object"
          },
          "names": {
            "additionalProperties": false,
            "properties": {
              "alternates": {
                "items": {
                  "minLength": 1,
                  "type": "string"
                },
                "type": "array"
              },
              "en": {
                "minLength": 1,
                "type": "string"
              },
              "iast": {
                "type": "string"
              },
              "native": {
                "type": "string"
              },
              "nativeLang": {
                "pattern": "^[a-z]{2,3}(?:-[A-Z][a-z]{3})?(?:-[A-Z]{2})?$",
                "type": "string"
              }
            },
            "required": [
              "en"
            ],
            "type": "object"
          },
          "region": {
            "type": "string"
          },
          "relations": {
            "default": [],
            "items": {
              "additionalProperties": false,
              "properties": {
                "kind": {
                  "enum": [
                    "part-of",
                    "authored",
                    "authored-by",
                    "ruled",
                    "ruled-by",
                    "patronised",
                    "patronised-by",
                    "succeeded",
                    "preceded",
                    "commented-on",
                    "located-at",
                    "excavated-at",
                    "issued-by",
                    "founded",
                    "founded-by",
                    "taught",
                    "student-of",
                    "influenced",
                    "contemporary-of",
                    "related-to"
                  ],
                  "type": "string"
                },
                "note": {
                  "type": "string"
                },
                "target": {
                  "pattern": "^(event|person|text|site|polity|artifact|tradition|concept|cosmology)\\.[a-z0-9]+(?:-[a-z0-9]+)*$",
                  "type": "string"
                }
              },
              "required": [
                "kind",
                "target"
              ],
              "type": "object"
            },
            "type": "array"
          },
          "review": {
            "additionalProperties": false,
            "properties": {
              "author": {
                "type": "string"
              },
              "lastReviewed": {
                "default": null,
                "type": [
                  "string",
                  "null"
                ]
              },
              "reviewer": {
                "default": null,
                "type": [
                  "string",
                  "null"
                ]
              },
              "status": {
                "enum": [
                  "draft",
                  "machine-checked",
                  "reviewed",
                  "published"
                ],
                "type": "string"
              }
            },
            "required": [
              "status",
              "reviewer",
              "lastReviewed"
            ],
            "type": "object"
          },
          "summaries": {
            "additionalProperties": false,
            "properties": {
              "kids": {
                "maxLength": 400,
                "minLength": 20,
                "type": "string"
              },
              "teen": {
                "maxLength": 500,
                "minLength": 20,
                "type": "string"
              }
            },
            "type": "object"
          },
          "summary": {
            "maxLength": 600,
            "minLength": 20,
            "type": "string"
          },
          "tags": {
            "default": [],
            "items": {
              "type": "string"
            },
            "type": "array"
          },
          "type": {
            "enum": [
              "event",
              "person",
              "text",
              "site",
              "polity",
              "artifact",
              "tradition",
              "concept",
              "cosmology"
            ],
            "type": "string"
          },
          "wikidata": {
            "anyOf": [
              {
                "pattern": "^Q\\d+$",
                "type": "string"
              },
              {
                "type": "null"
              }
            ]
          }
        },
        "required": [
          "id",
          "type",
          "kind",
          "names",
          "summary",
          "datings",
          "claims",
          "relations",
          "aliases",
          "tags",
          "review"
        ],
        "type": "object"
      },
      "type": "array"
    },
    "learningPaths": {
      "items": {
        "additionalProperties": false,
        "properties": {
          "audience": {
            "minLength": 3,
            "type": "string"
          },
          "focus": {
            "additionalProperties": false,
            "properties": {
              "best": {
                "type": "number"
              },
              "circa": {
                "type": "boolean"
              },
              "earliest": {
                "type": "number"
              },
              "latest": {
                "type": "number"
              },
              "precision": {
                "enum": [
                  "day",
                  "year",
                  "decade",
                  "century",
                  "millennium",
                  "ka",
                  "Ma",
                  "cosmological"
                ],
                "type": "string"
              }
            },
            "required": [
              "earliest",
              "latest",
              "precision",
              "circa"
            ],
            "type": "object"
          },
          "goals": {
            "items": {
              "minLength": 10,
              "type": "string"
            },
            "minItems": 1,
            "type": "array"
          },
          "id": {
            "pattern": "^learn\\.[a-z0-9]+(?:-[a-z0-9]+)*$",
            "type": "string"
          },
          "level": {
            "enum": [
              "adult",
              "teen",
              "kids"
            ],
            "type": "string"
          },
          "quiz": {
            "default": [],
            "items": {
              "additionalProperties": false,
              "properties": {
                "choices": {
                  "items": {
                    "additionalProperties": false,
                    "properties": {
                      "correct": {
                        "default": false,
                        "type": "boolean"
                      },
                      "explanation": {
                        "minLength": 10,
                        "type": "string"
                      },
                      "text": {
                        "minLength": 1,
                        "type": "string"
                      }
                    },
                    "required": [
                      "text",
                      "correct",
                      "explanation"
                    ],
                    "type": "object"
                  },
                  "maxItems": 5,
                  "minItems": 2,
                  "type": "array"
                },
                "id": {
                  "pattern": "^[a-z0-9]+(?:-[a-z0-9]+)*$",
                  "type": "string"
                },
                "question": {
                  "minLength": 10,
                  "type": "string"
                },
                "sources": {
                  "items": {
                    "anyOf": [
                      {
                        "pattern": "^src\\.[a-z0-9]+(?:-[a-z0-9]+)*$",
                        "type": "string"
                      },
                      {
                        "additionalProperties": false,
                        "properties": {
                          "id": {
                            "pattern": "^src\\.[a-z0-9]+(?:-[a-z0-9]+)*$",
                            "type": "string"
                          },
                          "locator": {
                            "minLength": 1,
                            "type": "string"
                          }
                        },
                        "required": [
                          "id"
                        ],
                        "type": "object"
                      }
                    ]
                  },
                  "minItems": 1,
                  "type": "array"
                }
              },
              "required": [
                "id",
                "question",
                "choices",
                "sources"
              ],
              "type": "object"
            },
            "type": "array"
          },
          "review": {
            "additionalProperties": false,
            "properties": {
              "author": {
                "type": "string"
              },
              "lastReviewed": {
                "default": null,
                "type": [
                  "string",
                  "null"
                ]
              },
              "reviewer": {
                "default": null,
                "type": [
                  "string",
                  "null"
                ]
              },
              "status": {
                "enum": [
                  "draft",
                  "machine-checked",
                  "reviewed",
                  "published"
                ],
                "type": "string"
              }
            },
            "required": [
              "status",
              "reviewer",
              "lastReviewed"
            ],
            "type": "object"
          },
          "steps": {
            "items": {
              "additionalProperties": false,
              "properties": {
                "article": {
                  "pattern": "^(history|philosophy|science|literature|art-and-culture|music|language)\\/[a-z0-9]+(?:-[a-z0-9]+)*$",
                  "type": "string"
                },
                "entity": {
                  "pattern": "^(event|person|text|site|polity|artifact|tradition|concept|cosmology)\\.[a-z0-9]+(?:-[a-z0-9]+)*$",
                  "type": "string"
                },
                "note": {
                  "maxLength": 600,
                  "minLength": 20,
                  "type": "string"
                },
                "title": {
                  "minLength": 3,
                  "type": "string"
                }
              },
              "required": [
                "note"
              ],
              "type": "object"
            },
            "minItems": 2,
            "type": "array"
          },
          "summary": {
            "maxLength": 600,
            "minLength": 20,
            "type": "string"
          },
          "tags": {
            "default": [],
            "items": {
              "type": "string"
            },
            "type": "array"
          },
          "title": {
            "minLength": 3,
            "type": "string"
          }
        },
        "required": [
          "id",
          "title",
          "level",
          "audience",
          "summary",
          "goals",
          "steps",
          "quiz",
          "tags",
          "review"
        ],
        "type": "object"
      },
      "type": "array"
    },
    "license": {
      "const": "CC BY-SA 4.0",
      "type": "string"
    },
    "schemaVersion": {
      "const": 1,
      "type": "number"
    },
    "sources": {
      "items": {
        "additionalProperties": false,
        "properties": {
          "aliases": {
            "items": {
              "pattern": "^src\\.[a-z0-9]+(?:-[a-z0-9]+)*$",
              "type": "string"
            },
            "type": "array"
          },
          "authors": {
            "default": [],
            "items": {
              "minLength": 2,
              "type": "string"
            },
            "type": "array"
          },
          "corpus": {
            "type": "string"
          },
          "doi": {
            "pattern": "^10\\.\\d{4,9}\\/\\S+$",
            "type": "string"
          },
          "editors": {
            "default": [],
            "items": {
              "minLength": 2,
              "type": "string"
            },
            "type": "array"
          },
          "id": {
            "pattern": "^src\\.[a-z0-9]+(?:-[a-z0-9]+)*$",
            "type": "string"
          },
          "isbn": {
            "pattern": "^(97[89])?\\d{9}[\\dX]$",
            "type": "string"
          },
          "journal": {
            "type": "string"
          },
          "note": {
            "type": "string"
          },
          "oclc": {
            "pattern": "^\\d+$",
            "type": "string"
          },
          "pages": {
            "type": "string"
          },
          "publisher": {
            "type": "string"
          },
          "title": {
            "minLength": 3,
            "type": "string"
          },
          "type": {
            "enum": [
              "primary-text",
              "translation",
              "inscription",
              "excavation-report",
              "coin-catalogue",
              "manuscript",
              "foreign-account",
              "journal-article",
              "book",
              "book-chapter",
              "reference-work",
              "museum-record",
              "dataset",
              "government-record",
              "web"
            ],
            "type": "string"
          },
          "url": {
            "format": "uri",
            "type": "string"
          },
          "volume": {
            "type": "string"
          },
          "year": {
            "maximum": 9007199254740991,
            "minimum": -9007199254740991,
            "type": "integer"
          }
        },
        "required": [
          "id",
          "type",
          "title",
          "authors",
          "editors"
        ],
        "type": "object"
      },
      "type": "array"
    }
  },
  "required": [
    "schemaVersion",
    "license",
    "entities",
    "sources",
    "articles",
    "corrections",
    "debates",
    "learningPaths"
  ],
  "type": "object"
}
