{
  "$id": "https://xn--mwe.com/schemas/k07-facility-evidence-bundle.schema.json",
  "$schema": "https://json-schema.org/draft/2020-12/schema",
  "additionalProperties": false,
  "properties": {
    "artifacts": {
      "type": "array"
    },
    "authority": {
      "type": "object"
    },
    "bundleId": {
      "pattern": "^FEB-K07-[A-Z0-9-]{6,64}$",
      "type": "string"
    },
    "claims": {
      "type": "array"
    },
    "facilityPatternId": {
      "pattern": "^FP-K06-",
      "type": "string"
    },
    "facilityRef": {
      "maxLength": 128,
      "minLength": 8,
      "not": {
        "pattern": "(?i)^(example|generic|sample|test|demo|unknown)([-_ ].*)?$"
      },
      "type": "string"
    },
    "generatedAt": {
      "format": "date-time",
      "type": "string"
    },
    "limitations": {
      "minItems": 1,
      "type": "array"
    },
    "manifestSha256": {
      "pattern": "^[0-9a-f]{64}$",
      "type": "string"
    },
    "schema": {
      "const": "K07_FACILITY_EVIDENCE_BUNDLE_V1"
    },
    "scope": {
      "type": "object"
    },
    "siteFacts": {
      "minItems": 1,
      "type": "array"
    }
  },
  "required": [
    "schema",
    "bundleId",
    "facilityPatternId",
    "facilityRef",
    "generatedAt",
    "scope",
    "authority",
    "siteFacts",
    "artifacts",
    "claims",
    "limitations",
    "manifestSha256"
  ],
  "title": "K07 Facility Evidence Bundle",
  "type": "object"
}
