{
  "$schema": "https://json-schema.org/draft/2020-12/schema",
  "type": "object",
  "additionalProperties": false,
  "required": [
    "package_id",
    "manifest_version",
    "target_profile_id",
    "package_decision",
    "compatibility_summary",
    "quarantined_resource_ids",
    "validation_state",
    "review_state",
    "audit_event_id",
    "evidence_refs",
    "rationale",
    "minimal_repair"
  ],
  "properties": {
    "package_id": {
      "type": "string",
      "minLength": 1
    },
    "manifest_version": {
      "type": "string",
      "minLength": 1
    },
    "target_profile_id": {
      "type": "string",
      "minLength": 1
    },
    "package_decision": {
      "enum": [
        "IMPORT_ACCEPTABLE_BOUNDED",
        "REVIEW_REQUIRED",
        "HOLD"
      ]
    },
    "compatibility_summary": {
      "type": "string",
      "minLength": 1
    },
    "quarantined_resource_ids": {
      "type": "array",
      "items": {
        "type": "string"
      },
      "uniqueItems": true
    },
    "validation_state": {
      "enum": [
        "PASS",
        "PARTIAL",
        "FAIL",
        "UNKNOWN"
      ]
    },
    "review_state": {
      "type": "string",
      "minLength": 1
    },
    "audit_event_id": {
      "type": "string",
      "minLength": 1
    },
    "evidence_refs": {
      "type": "array",
      "minItems": 3,
      "items": {
        "type": "string"
      }
    },
    "rationale": {
      "type": "string",
      "minLength": 30
    },
    "minimal_repair": {
      "type": "string",
      "minLength": 10
    }
  }
}
