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.

Add error responses as components

Kiran K62957a7083ed
diff --git a/apps/web/lib/openapi/index.ts b/apps/web/lib/openapi/index.ts
index 6462516a70..e78fa4be92 100644
--- a/apps/web/lib/openapi/index.ts
+++ b/apps/web/lib/openapi/index.ts
@@ -1,5 +1,6 @@
import { ZodOpenApiObject } from "zod-openapi";
+import { openApiErrorResponses } from "@/lib/openapi/responses";
import { LinkSchema } from "@/lib/zod/schemas/links";
import { TagSchema } from "@/lib/zod/schemas/tags";
import { WorkspaceSchema } from "@/lib/zod/schemas/workspaces";
@@ -53,5 +54,8 @@ export const openApiObject: ZodOpenApiObject = {
scheme: "bearer",
},
},
+ responses: {
+ ...openApiErrorResponses,
+ },
},
};