{
  "$schema": "https://json-schema.org/draft/2020-12/schema",
  "$id": "https://artifacts.apis.io/openarchieven-nl/json-schema/openarchieven-nl-a2-arecord-schema.json",
  "title": "A2ARecord",
  "description": "A genealogical record in the Archive 2 All (A2A) model format. Field order may differ from the XSD due to hash-based serialisation.\n",
  "x-generated": "2026-11-20",
  "x-method": "derived",
  "x-generator": "derive-json-schema.py",
  "x-source": "openapi/openarchieven-nl-openapi.yaml#/components/schemas/A2ARecord",
  "type": "object",
  "properties": {
    "Person": {
      "type": "array",
      "items": {
        "type": "object",
        "properties": {
          "@pid": {
            "type": "string"
          },
          "PersonName": {
            "type": "object",
            "properties": {
              "PersonNameFirstName": {
                "type": "string"
              },
              "PersonNamePrefixLastName": {
                "type": "string"
              },
              "PersonNameLastName": {
                "type": "string"
              }
            }
          },
          "Age": {
            "type": "object",
            "properties": {
              "PersonAgeLiteral": {
                "type": "string"
              }
            }
          },
          "BirthPlace": {
            "type": "object",
            "properties": {
              "Place": {
                "type": "string"
              }
            }
          },
          "Profession": {
            "type": "string"
          }
        }
      }
    },
    "Event": {
      "type": "object",
      "properties": {
        "@eid": {
          "type": "string"
        },
        "EventType": {
          "type": "string"
        },
        "EventDate": {
          "type": "object",
          "properties": {
            "LiteralDate": {
              "type": "string"
            },
            "Year": {
              "type": "string"
            },
            "Month": {
              "type": "string"
            },
            "Day": {
              "type": "string"
            }
          }
        },
        "EventPlace": {
          "type": "object",
          "properties": {
            "Place": {
              "type": "string"
            }
          }
        }
      }
    },
    "RelationEP": {
      "type": "array",
      "items": {
        "type": "object",
        "properties": {
          "PersonKeyRef": {
            "type": "string"
          },
          "EventKeyRef": {
            "type": "string"
          },
          "RelationType": {
            "type": "string"
          }
        }
      }
    },
    "Source": {
      "type": "object",
      "properties": {
        "SourceType": {
          "type": "string"
        },
        "SourcePlace": {
          "type": "object",
          "properties": {
            "Country": {
              "type": "string"
            },
            "Place": {
              "type": "string"
            }
          }
        },
        "SourceDate": {
          "type": "object",
          "properties": {
            "LiteralDate": {
              "type": "string"
            },
            "Year": {
              "type": "string"
            },
            "Month": {
              "type": "string"
            },
            "Day": {
              "type": "string"
            }
          }
        },
        "SourceIndexDate": {
          "type": "object",
          "properties": {
            "From": {
              "type": "string",
              "format": "date"
            },
            "To": {
              "type": "string",
              "format": "date"
            }
          }
        },
        "SourceReference": {
          "type": "object",
          "additionalProperties": true
        }
      }
    }
  }
}