{
  "$schema": "https://json-schema.org/draft/2020-12/schema",
  "$id": "https://paulkov.github.io/dpone/schemas/gitops/deployment-cache-recovery-apply.schema.json",
  "title": "dpone GitOps deployment cache recovery apply report",
  "type": "object",
  "required": [
    "schema",
    "environment",
    "recovered_deployment_id",
    "release_id",
    "current_path",
    "pointer_path"
  ],
  "additionalProperties": true,
  "properties": {
    "schema": {
      "const": "dpone.deployment-cache-recovery-apply.v1"
    },
    "environment": {
      "type": "string",
      "minLength": 1
    },
    "recovered_deployment_id": {
      "$ref": "#/$defs/sha256"
    },
    "release_id": {
      "$ref": "#/$defs/sha256"
    },
    "current_path": {
      "type": "string",
      "minLength": 1
    },
    "pointer_path": {
      "type": "string",
      "minLength": 1
    }
  },
  "$defs": {
    "sha256": {
      "type": "string",
      "pattern": "^sha256:[0-9a-f]{64}$"
    }
  }
}
