{
  "$schema": "https://json-schema.org/draft/2020-12/schema",
  "$id": "https://glasgow.phenotype.dev/data/schema/person.schema.json",
  "title": "Glasgow Surname Project person dossier",
  "type": "object",
  "required": [
    "schema_version",
    "id",
    "name",
    "canonical_url",
    "vitals",
    "identity",
    "relationships",
    "claims",
    "evidence"
  ],
  "properties": {
    "schema_version": {
      "const": "1.0"
    },
    "id": {
      "type": "string"
    },
    "name": {
      "type": "string"
    },
    "canonical_url": {
      "type": "string",
      "format": "uri"
    },
    "relationships": {
      "type": "object",
      "required": [
        "parents",
        "spouses",
        "children",
        "siblings"
      ]
    },
    "claims": {
      "type": "array",
      "items": {
        "type": "object",
        "required": [
          "id",
          "type",
          "status",
          "evidence_ids"
        ]
      }
    },
    "evidence": {
      "type": "array",
      "items": {
        "type": "object",
        "required": [
          "id",
          "claim_ids",
          "source_quality",
          "provenance"
        ]
      }
    },
    "open_questions": {
      "type": "array"
    },
    "research_leads": {
      "type": "array"
    },
    "research_findings": {
      "type": "array"
    },
    "similar_people": {
      "type": "array"
    },
    "potential_parentage": {
      "type": "object"
    }
  }
}
