{
  "$schema": "https://json-schema.org/draft/2020-12/schema",
  "$id": "https://dpone.dev/schemas/schema-migration/recovery-retention-plan.schema.json",
  "title": "dpone schema migration recovery retention plan",
  "type": "object",
  "required": [
    "schema_version",
    "retention_plan_id",
    "status",
    "target",
    "environment",
    "restore_points_count",
    "actions",
    "blockers",
    "warnings"
  ],
  "additionalProperties": true,
  "properties": {
    "schema_version": {"const": "dpone.schema_migration_recovery_retention_plan.v1"},
    "retention_plan_id": {"type": "string", "pattern": "^sha256:[0-9a-f]{64}$"},
    "status": {"enum": ["planned", "warning", "blocked"]},
    "target": {"type": "string"},
    "environment": {"type": "string"},
    "restore_points_count": {"type": "integer", "minimum": 0},
    "actions": {"type": "array", "items": {"type": "object"}},
    "blockers": {"type": "array", "items": {"type": "string"}},
    "warnings": {"type": "array", "items": {"type": "string"}}
  }
}
