{
  "$schema": "https://json-schema.org/draft/2020-12/schema",
  "$id": "https://altheia.local/schemas/altheia_reporting_ownership_reference_1.0.schema.json",
  "type": "object",
  "required": [
    "schema_version",
    "source_hash",
    "origin_key",
    "product_ownership_reference",
    "population_reference",
    "analysis_hash"
  ],
  "properties": {
    "schema_version": {
      "const": "altheia_reporting_ownership_reference_1.0"
    },
    "source_hash": {
      "type": "string",
      "pattern": "^fnv1a-[a-f0-9]{8}$"
    },
    "origin_key": {
      "type": "string",
      "minLength": 1
    },
    "analysis_hash": {
      "type": "string",
      "pattern": "^fnv1a-[a-f0-9]{8}$"
    },
    "product_ownership_reference": {
      "$ref": "altheia_study_ownership_reference_1.0.schema.json"
    },
    "population_reference": {
      "$ref": "altheia_ownership_population_reference_1.0.schema.json"
    }
  }
}
