{
  "$schema": "https://json-schema.org/draft/2020-12/schema",
  "$id": "https://dpone.dev/schemas/schema-migration/recovery-restore-certificate.schema.json",
  "title": "dpone schema migration recovery restore certificate",
  "type": "object",
  "required": [
    "schema_version",
    "certificate_id",
    "status",
    "profile",
    "pack_id",
    "restore_point_id",
    "restore_run_id",
    "environment",
    "target",
    "checks",
    "blockers",
    "warnings",
    "metrics"
  ],
  "additionalProperties": true,
  "properties": {
    "schema_version": {"const": "dpone.schema_migration_recovery_restore_certificate.v1"},
    "certificate_id": {"type": "string", "pattern": "^sha256:[0-9a-f]{64}$"},
    "status": {"enum": ["certified", "warning", "blocked"]},
    "profile": {"enum": ["advisory", "stage", "prod_strict", "regulated"]},
    "pack_id": {"type": "string"},
    "restore_point_id": {"type": "string"},
    "restore_run_id": {"type": "string"},
    "environment": {"type": "string"},
    "target": {"type": "object"},
    "checks": {"type": "array", "items": {"type": "object"}},
    "blockers": {"type": "array", "items": {"type": "string"}},
    "warnings": {"type": "array", "items": {"type": "string"}},
    "metrics": {"type": "object"}
  }
}
