The modern link attribution platform. Loved by world-class engineering teams at Twilio, Zillow, Jobber, Vercel, Raycast, and more.
TypeScript clickhousemysqlnextjsopen-sourceplanetscaleprismatailwindcsstinybirdtypescriptupstashvercel
Increase tag name max length from 50 to 190 characters.
Kiran K3f49171ef8e8
diff --git a/apps/web/lib/zod/schemas/tags.ts b/apps/web/lib/zod/schemas/tags.tsindex 3e476a15c5..2f4116a17f 100644--- a/apps/web/lib/zod/schemas/tags.ts+++ b/apps/web/lib/zod/schemas/tags.ts@@ -48,23 +48,22 @@ export const tagColorSchema = z}).describe("The color of the tag");+const tagName = z+ .string()+ .trim()+ .min(1)+ .max(190)+ .describe("The name of the tag to create.");+export const createTagBodySchema = z.object({- name: z- .string()- .trim()- .min(1)- .max(50)- .describe("The name of the tag to create."),+ name: tagName,color: tagColorSchema.describe(`The color of the tag. If not provided, a random color will be used from the list: ${RESOURCE_COLORS.join(", ")}.`,),- tag: z- .string()- .trim()- .min(1)- .describe("The name of the tag to create.")- .meta({ deprecated: true }),+ tag: tagName.meta({+ deprecated: true,+ }),}).partial().superRefine((data, ctx) => {