diff options
| author | Mohamed Bassem <me@mbassem.com> | 2025-10-11 18:16:06 +0000 |
|---|---|---|
| committer | Mohamed Bassem <me@mbassem.com> | 2025-10-11 18:16:06 +0000 |
| commit | 7f138b99d4cbb3495dd25d59df2fa767dacc1d35 (patch) | |
| tree | 84ef68cc2a044064b054b5af5d5fc1ebc5897496 /packages/open-api/lib/lists.ts | |
| parent | 87053d2e76a362da9ee417110195ec02673080fd (diff) | |
| download | karakeep-7f138b99d4cbb3495dd25d59df2fa767dacc1d35.tar.zst | |
fix(api): Document the API for getting lists of a bookmark. fixes #2030
Diffstat (limited to 'packages/open-api/lib/lists.ts')
| -rw-r--r-- | packages/open-api/lib/lists.ts | 4 |
1 files changed, 1 insertions, 3 deletions
diff --git a/packages/open-api/lib/lists.ts b/packages/open-api/lib/lists.ts index 992b96c4..de67df2f 100644 --- a/packages/open-api/lib/lists.ts +++ b/packages/open-api/lib/lists.ts @@ -6,7 +6,6 @@ import { z } from "zod"; import { zSortOrder } from "@karakeep/shared/types/bookmarks"; import { - zBookmarkListSchema, zEditBookmarkListSchema, zNewBookmarkListSchema, } from "@karakeep/shared/types/lists"; @@ -19,6 +18,7 @@ import { PaginatedBookmarksSchema, PaginationSchema, } from "./pagination"; +import { ListSchema } from "./types"; export const registry = new OpenAPIRegistry(); extendZodWithOpenApi(z); @@ -34,8 +34,6 @@ export const ListIdSchema = registry.registerParameter( }), ); -export const ListSchema = zBookmarkListSchema.openapi("List"); - registry.registerPath({ method: "get", path: "/lists", |
