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.

update openapi spec

Steven Tey554a30d352bf
diff --git a/apps/web/app/api/route.ts b/apps/web/app/api/route.ts
index 8b4b49728e..e5df47756e 100644
--- a/apps/web/app/api/route.ts
+++ b/apps/web/app/api/route.ts
@@ -840,16 +840,16 @@ export function GET(): NextResponse<OpenAPIV3.Document> {
format: "cuid",
description:
"The unique id of the tag assigned to the short link.",
- default: null,
- nullable: true,
deprecated: true,
},
- tags: {
+ tagIds: {
type: "array",
items: {
- $ref: "#/components/schemas/Tag",
+ type: "string",
+ format: "cuid",
},
- description: "The tags assigned to the short link.",
+ description:
+ "The unique ids of the tags assigned to the short link.",
default: [],
},
comments: {
@@ -905,6 +905,14 @@ export function GET(): NextResponse<OpenAPIV3.Document> {
default: null,
nullable: true,
},
+ tags: {
+ type: "array",
+ items: {
+ $ref: "#/components/schemas/Tag",
+ },
+ description: "The tags assigned to the short link.",
+ default: [],
+ },
userId: {
type: "string",
format: "cuid",