{
  "$schema": "https://json-schema.org/draft/2020-12/schema",
  "$id": "https://hsimc.tech/reality-registry/schemas/reality-overlay.schema.json",
  "title": "HSIMC Reality Overlay v0.1",
  "type": "object",
  "required": [
    "schema",
    "overlay_id",
    "base_reality_id",
    "base_content_sha256",
    "state",
    "delta",
    "authority",
    "created_at"
  ],
  "properties": {
    "schema": {
      "const": "hsimc.reality-overlay.v0.1"
    },
    "overlay_id": {
      "type": "string"
    },
    "base_reality_id": {
      "type": "string"
    },
    "base_content_sha256": {
      "type": "string"
    },
    "overlay_holder_ref": {
      "type": [
        "string",
        "null"
      ]
    },
    "state": {
      "enum": [
        "OVERLAY_DRAFT_NOT_MERGED",
        "HOLDER_REVIEW",
        "ACCEPTED_AS_OVERLAY",
        "REJECTED",
        "STALE"
      ]
    },
    "delta": {
      "type": "object"
    },
    "evidence_refs": {
      "type": "array"
    },
    "authority": {
      "type": "object"
    },
    "created_at": {
      "type": "string"
    }
  }
}
