diff options
| author | Mohamed Bassem <me@mbassem.com> | 2025-04-16 19:04:25 +0000 |
|---|---|---|
| committer | Mohamed Bassem <me@mbassem.com> | 2025-04-16 23:50:17 +0000 |
| commit | ba89a864bb4548623ca1bfcfc9ab6eb7fe782603 (patch) | |
| tree | e3b8ddf9d418255f95c18bee76350d441fdd3081 /packages/open-api/lib/lists.ts | |
| parent | 5e0f4de1625957c6ce057ae272aa301fc459d31b (diff) | |
| download | karakeep-ba89a864bb4548623ca1bfcfc9ab6eb7fe782603.tar.zst | |
fix: Add includeContent to search endpoint and document it in the docs
Diffstat (limited to 'packages/open-api/lib/lists.ts')
| -rw-r--r-- | packages/open-api/lib/lists.ts | 8 |
1 files changed, 6 insertions, 2 deletions
diff --git a/packages/open-api/lib/lists.ts b/packages/open-api/lib/lists.ts index f2c0d954..2273d33b 100644 --- a/packages/open-api/lib/lists.ts +++ b/packages/open-api/lib/lists.ts @@ -13,7 +13,11 @@ import { import { BookmarkIdSchema } from "./bookmarks"; import { BearerAuth } from "./common"; import { ErrorSchema } from "./errors"; -import { PaginatedBookmarksSchema, PaginationSchema } from "./pagination"; +import { + IncludeContentSearchParamSchema, + PaginatedBookmarksSchema, + PaginationSchema, +} from "./pagination"; export const registry = new OpenAPIRegistry(); extendZodWithOpenApi(z); @@ -192,7 +196,7 @@ registry.registerPath({ security: [{ [BearerAuth.name]: [] }], request: { params: z.object({ listId: ListIdSchema }), - query: PaginationSchema, + query: PaginationSchema.merge(IncludeContentSearchParamSchema), }, responses: { 200: { |
