{
  "$schema": "https://json-schema.org/draft/2020-12/schema",
  "properties": {
    "commit_sha": {
      "type": [
        "string",
        "null"
      ]
    },
    "product_id": {
      "pattern": "^prod_[0-7][0123456789abcdefghjkmnpqrstvwxyz]{25}$",
      "type": "string"
    },
    "reason_code": {
      "anyOf": [
        {
          "minLength": 1,
          "type": "string"
        },
        {
          "type": "null"
        }
      ]
    },
    "replayed": {
      "type": [
        "boolean",
        "null"
      ]
    },
    "revision_id": {
      "anyOf": [
        {
          "pattern": "^rev_[0-7][0123456789abcdefghjkmnpqrstvwxyz]{25}$",
          "type": "string"
        },
        {
          "type": "null"
        }
      ]
    },
    "source_freeze_id": {
      "pattern": "^frz_[0-7][0123456789abcdefghjkmnpqrstvwxyz]{25}$",
      "type": "string"
    },
    "status": {
      "enum": [
        "frozen",
        "rejected",
        "failed"
      ],
      "type": "string"
    },
    "workspace_id": {
      "pattern": "^ws_[0-7][0123456789abcdefghjkmnpqrstvwxyz]{25}$",
      "type": "string"
    }
  },
  "required": [
    "source_freeze_id",
    "workspace_id",
    "product_id",
    "status",
    "revision_id",
    "replayed",
    "commit_sha",
    "reason_code"
  ],
  "type": "object"
}
