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.

Remove [DEPRECATED] from OpenAPI descriptions

Kiran K7abb88671d68
diff --git a/apps/web/lib/openapi/request.ts b/apps/web/lib/openapi/request.ts
index 024ed40d61..24526afd45 100644
--- a/apps/web/lib/openapi/request.ts
+++ b/apps/web/lib/openapi/request.ts
@@ -5,8 +5,6 @@ export const workspaceParamsSchema = z.object({
projectSlug: z
.string()
.optional()
- .describe(
- "[DEPRECATED] (use `workspaceId` instead) The slug of the project.",
- )
+ .describe("The slug of the project. Use `workspaceId` instead.")
.openapi({ deprecated: true }),
});
diff --git a/apps/web/lib/zod/schemas/links.ts b/apps/web/lib/zod/schemas/links.ts
index 82fdc82f90..045f06cecf 100644
--- a/apps/web/lib/zod/schemas/links.ts
+++ b/apps/web/lib/zod/schemas/links.ts
@@ -28,9 +28,7 @@ const LinksQuerySchema = z.object({
tagId: z
.string()
.optional()
- .describe(
- "[DEPRECATED] (use tagIds instead): The tag ID to filter the links by.",
- )
+ .describe("The tag ID to filter the links by. Use `tagIds` instead.")
.openapi({ deprecated: true }),
tagIds: z
.union([z.string(), z.array(z.string())])
@@ -197,7 +195,7 @@ export const createLinkBodySchema = z.object({
.string()
.nullish()
.describe(
- "[DEPRECATED] (use tagIds instead): The unique ID of the tag assigned to the short link.",
+ "The unique ID of the tag assigned to the short link. Use `tagIds` instead.",
)
.openapi({ deprecated: true }),
tagIds: z
@@ -305,7 +303,7 @@ export const LinkSchema = z
.string()
.nullable()
.describe(
- "[DEPRECATED] (use `tags` instead): The unique ID of the tag assigned to the short link.",
+ "The unique ID of the tag assigned to the short link. Use `tags` instead.",
)
.openapi({ deprecated: true }),
tags: TagSchema.array()
@@ -364,9 +362,7 @@ export const LinkSchema = z
.describe("The date and time when the short link was last updated."),
projectId: z
.string()
- .describe(
- "[DEPRECATED] (use workspaceId instead): The project ID of the short link.",
- )
+ .describe("The project ID of the short link. Use `workspaceId` instead.")
.openapi({ deprecated: true }),
})
.openapi({ title: "Link" });