{
  "$schema": "https://json-schema.org/draft/2020-12/schema",
  "title": "Voynich Atlas candidate records v1",
  "type": "array",
  "minItems": 1,
  "items": {
    "type": "object",
    "required": [
      "id",
      "title",
      "claim",
      "type",
      "disposition",
      "scope",
      "limitations",
      "alternatives",
      "folios",
      "evidence",
      "sources",
      "images",
      "numbers",
      "relationships",
      "corrections",
      "decision_ids",
      "reproduction",
      "attribution",
      "license",
      "release_clearance",
      "release_reason"
    ],
    "properties": {
      "id": {
        "type": "string"
      },
      "type": {
        "enum": [
          "observation",
          "interpretation",
          "hypothesis"
        ]
      },
      "release_clearance": {
        "enum": [
          "cleared",
          "withheld"
        ]
      },
      "evidence": {
        "type": "array",
        "minItems": 1,
        "items": {
          "type": "object",
          "required": [
            "ref",
            "sha256"
          ],
          "properties": {
            "sha256": {
              "type": "string",
              "pattern": "^[0-9a-f]{64}$"
            }
          }
        }
      }
    }
  }
}
