diff --git a/payload-schemas/schemas/delete/event.schema.json b/payload-schemas/schemas/delete/event.schema.json index 1d9bb3663..8b09cd28c 100644 --- a/payload-schemas/schemas/delete/event.schema.json +++ b/payload-schemas/schemas/delete/event.schema.json @@ -5,7 +5,7 @@ "required": ["ref", "ref_type", "pusher_type", "repository", "sender"], "properties": { "ref": { "type": "string" }, - "ref_type": { "type": "string" }, + "ref_type": { "type": "string", "enum": ["tag", "branch"] }, "pusher_type": { "type": "string" }, "repository": { "$ref": "common/repository.schema.json" }, "sender": { "$ref": "common/user.schema.json" }, diff --git a/schema.d.ts b/schema.d.ts index d593f8317..d4976cc02 100644 --- a/schema.d.ts +++ b/schema.d.ts @@ -1651,7 +1651,7 @@ export interface CreateEvent { } export interface DeleteEvent { ref: string; - ref_type: string; + ref_type: "tag" | "branch"; pusher_type: string; repository: Repository; sender: User;