diff options
Diffstat (limited to 'packages/open-api/lib/bookmarks.ts')
| -rw-r--r-- | packages/open-api/lib/bookmarks.ts | 12 |
1 files changed, 1 insertions, 11 deletions
diff --git a/packages/open-api/lib/bookmarks.ts b/packages/open-api/lib/bookmarks.ts index 8fb0eb8c..57b50a9b 100644 --- a/packages/open-api/lib/bookmarks.ts +++ b/packages/open-api/lib/bookmarks.ts @@ -13,6 +13,7 @@ import { zUpdateBookmarksRequestSchema, } from "@karakeep/shared/types/bookmarks"; +import { AssetIdSchema } from "./assets"; import { BearerAuth } from "./common"; import { ErrorSchema } from "./errors"; import { HighlightSchema } from "./highlights"; @@ -27,17 +28,6 @@ import { TagIdSchema } from "./tags"; export const registry = new OpenAPIRegistry(); extendZodWithOpenApi(z); -export const AssetIdSchema = registry.registerParameter( - "AssetId", - z.string().openapi({ - param: { - name: "assetId", - in: "path", - }, - example: "ieidlxygmwj87oxz5hxttoc8", - }), -); - export const BookmarkIdSchema = registry.registerParameter( "BookmarkId", z.string().openapi({ |
