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.

fix openapi

Kiran Kda4ebd32d659
diff --git a/apps/web/lib/zod/schemas/leads.ts b/apps/web/lib/zod/schemas/leads.ts
index 6d555e01dd..0f38f699b3 100644
--- a/apps/web/lib/zod/schemas/leads.ts
+++ b/apps/web/lib/zod/schemas/leads.ts
@@ -133,7 +133,8 @@ export const leadEventResponseSchema = z
.string()
.nullish()
.transform((val) => (val === "" ? null : val))
- .default(null),
+ .default(null)
+ .openapi({ type: "string" }),
// nested objects
click: clickEventSchema,
link: linkEventSchema,
diff --git a/apps/web/lib/zod/schemas/sales.ts b/apps/web/lib/zod/schemas/sales.ts
index 617020db48..49e34962d3 100644
--- a/apps/web/lib/zod/schemas/sales.ts
+++ b/apps/web/lib/zod/schemas/sales.ts
@@ -164,7 +164,8 @@ export const saleEventResponseSchema = z
.string()
.nullish()
.transform((val) => (val === "" ? null : val))
- .default(null),
+ .default(null)
+ .openapi({ type: "string" }),
})
.merge(commonDeprecatedEventFields)
.openapi({ ref: "SaleEvent" });