{
  "$schema": "https://json-schema.org/draft/2020-12/schema",
  "$id": "https://dpone.dev/schemas/schema-migration/recovery-chain-verification.schema.json",
  "title": "dpone schema migration recovery chain verification",
  "type": "object",
  "required": [
    "schema_version",
    "chain_verification_id",
    "status",
    "restore_point_id",
    "chain",
    "blockers",
    "warnings"
  ],
  "additionalProperties": true,
  "properties": {
    "schema_version": {"const": "dpone.schema_migration_recovery_chain_verification.v1"},
    "chain_verification_id": {"type": "string", "pattern": "^sha256:[0-9a-f]{64}$"},
    "status": {"enum": ["verified", "warning", "blocked"]},
    "restore_point_id": {"type": "string"},
    "chain_id": {"type": ["string", "null"]},
    "target": {"type": "object"},
    "environment": {"type": ["string", "null"]},
    "chain": {"type": "array", "items": {"type": "object"}},
    "blockers": {"type": "array", "items": {"type": "string"}},
    "warnings": {"type": "array", "items": {"type": "string"}}
  }
}
