aboutsummaryrefslogtreecommitdiffstats
path: root/packages/open-api/lib/lists.ts
diff options
context:
space:
mode:
Diffstat (limited to 'packages/open-api/lib/lists.ts')
-rw-r--r--packages/open-api/lib/lists.ts5
1 files changed, 3 insertions, 2 deletions
diff --git a/packages/open-api/lib/lists.ts b/packages/open-api/lib/lists.ts
index aa5d57f3..4b728a1e 100644
--- a/packages/open-api/lib/lists.ts
+++ b/packages/open-api/lib/lists.ts
@@ -6,6 +6,7 @@ import { z } from "zod";
import {
zBookmarkListSchema,
+ zEditBookmarkListSchema,
zNewBookmarkListSchema,
} from "@hoarder/shared/types/lists";
@@ -120,7 +121,7 @@ registry.registerPath({
registry.registerPath({
method: "patch",
- path: "/list/{listId}",
+ path: "/lists/{listId}",
description: "Update list by its id",
summary: "Update a list",
tags: ["Lists"],
@@ -132,7 +133,7 @@ registry.registerPath({
"The data to update. Only the fields you want to update need to be provided.",
content: {
"application/json": {
- schema: zNewBookmarkListSchema.partial(),
+ schema: zEditBookmarkListSchema.omit({ listId: true }),
},
},
},