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.

Move to project

Kiran K87156a155ea8
diff --git a/apps/web/lib/openapi/tags/create-tag.ts b/apps/web/lib/openapi/tags/create-tag.ts
index df095ec647..ff4b2bcfd1 100644
--- a/apps/web/lib/openapi/tags/create-tag.ts
+++ b/apps/web/lib/openapi/tags/create-tag.ts
@@ -1,7 +1,7 @@
import { ZodOpenApiOperationObject } from "zod-openapi";
import { openApiErrorResponses } from "@/lib/openapi/responses";
-import { projectOrWorkspaceSchema } from "@/lib/zod";
+import { projectOrWorkspaceSchema } from "@/lib/zod/schemas/projects";
import { createTagBodySchema, TagSchema } from "@/lib/zod/schemas/tags";
export const createTag: ZodOpenApiOperationObject = {
diff --git a/apps/web/lib/openapi/tags/get-tags.ts b/apps/web/lib/openapi/tags/get-tags.ts
index 1a06c6aa57..89bf742b87 100644
--- a/apps/web/lib/openapi/tags/get-tags.ts
+++ b/apps/web/lib/openapi/tags/get-tags.ts
@@ -1,7 +1,8 @@
import { ZodOpenApiOperationObject } from "zod-openapi";
import { openApiErrorResponses } from "@/lib/openapi/responses";
-import z, { projectOrWorkspaceSchema } from "@/lib/zod";
+import z from "@/lib/zod";
+import { projectOrWorkspaceSchema } from "@/lib/zod/schemas/projects";
import { TagSchema } from "@/lib/zod/schemas/tags";
export const getTags: ZodOpenApiOperationObject = {
diff --git a/apps/web/lib/zod/index.ts b/apps/web/lib/zod/index.ts
index a03744d6b2..b9ca34a5a8 100644
--- a/apps/web/lib/zod/index.ts
+++ b/apps/web/lib/zod/index.ts
@@ -8,20 +8,4 @@ export default z;
export const domainKeySchema = z.object({
domain: z.string().min(1),
key: z.string().min(1),
-});
-
-// TODO:
-// Update the `workspaceId` description with where to copy the ID from
-
-export const projectOrWorkspaceSchema = z.object({
- projectSlug: z
- .string()
- .describe(
- "[DEPRECATED (use workspaceId instead)]: The slug for the project to create tags for.",
- )
- .optional()
- .openapi({ deprecated: true }),
- workspaceId: z
- .string()
- .describe("The ID for the workspace to create tags for."),
-});
+});
\ No newline at end of file
diff --git a/apps/web/lib/zod/schemas/projects.ts b/apps/web/lib/zod/schemas/projects.ts
index a921e94062..e37665669d 100644
--- a/apps/web/lib/zod/schemas/projects.ts
+++ b/apps/web/lib/zod/schemas/projects.ts
@@ -46,3 +46,19 @@ export const ProjectSchema = z
.openapi({
title: "Project",
});
+
+// TODO:
+// Update the `workspaceId` description with where to copy the ID from
+
+export const projectOrWorkspaceSchema = z.object({
+ projectSlug: z
+ .string()
+ .describe(
+ "[DEPRECATED (use workspaceId instead)]: The slug for the project to create tags for.",
+ )
+ .optional()
+ .openapi({ deprecated: true }),
+ workspaceId: z
+ .string()
+ .describe("The ID for the workspace to create tags for."),
+});