Skip to content

armgit / dub

Public Imported from GitHub
0

The modern link attribution platform. Loved by world-class engineering teams at Twilio, Zillow, Jobber, Vercel, Raycast, and more.

Allow empty destination URLs on LinkSchema responses

Kiran Kc47dbc7df525
diff --git a/apps/web/lib/zod/schemas/links.ts b/apps/web/lib/zod/schemas/links.ts
index ef8fc55747..d9e60df919 100644
--- a/apps/web/lib/zod/schemas/links.ts
+++ b/apps/web/lib/zod/schemas/links.ts
@@ -587,7 +587,7 @@ export const LinkSchema = z
.describe(
"The short link slug. If not provided, a random 7-character slug will be generated.",
),
- url: z.url().describe("The destination URL of the short link."),
+ url: z.string().describe("The destination URL of the short link."),
trackConversion: z
.boolean()
.default(false)