The modern link attribution platform. Loved by world-class engineering teams at Twilio, Zillow, Jobber, Vercel, Raycast, and more.
TypeScript clickhousemysqlnextjsopen-sourceplanetscaleprismatailwindcsstinybirdtypescriptupstashvercel
fix
Steven Tey5314ac94073f
diff --git a/apps/web/lib/openapi/links/bulk-create-links.ts b/apps/web/lib/openapi/links/bulk-create-links.tsindex 5cca41dcf8..06943dd835 100644--- a/apps/web/lib/openapi/links/bulk-create-links.ts+++ b/apps/web/lib/openapi/links/bulk-create-links.ts@@ -24,8 +24,15 @@ export const bulkCreateLinks: ZodOpenApiOperationObject = {description: "The created links",content: {"application/json": {- // array can be LinkSchema or LinkErrorSchema- schema: z.array(LinkSchema.or(LinkErrorSchema)),+ schema: z.array(z.union([LinkSchema, LinkErrorSchema])).openapi({+ type: "array",+ items: {+ oneOf: [+ { $ref: "#/components/schemas/Link" },+ { $ref: "#/components/schemas/LinkError" },+ ],+ },+ }),},},},