diff options
| author | ekambains <bainseka@sheridancollege.ca> | 2025-04-12 15:11:28 -0400 |
|---|---|---|
| committer | GitHub <noreply@github.com> | 2025-04-12 20:11:28 +0100 |
| commit | a39cd5f3c0a3e287652f945d203facab413b5b65 (patch) | |
| tree | fb47ba7f7180604d1c023361b65340b0096a6096 /packages/shared | |
| parent | 56e679565741a501fcc73f2ea4f417c111c65c1e (diff) | |
| download | karakeep-a39cd5f3c0a3e287652f945d203facab413b5b65.tar.zst | |
feat(web): Optionally add short description to lists (#1225)
* feat(web): Optionally add short description to lists
* regenerate openapi spec
---------
Co-authored-by: Mohamed Bassem <me@mbassem.com>
Diffstat (limited to 'packages/shared')
| -rw-r--r-- | packages/shared/types/lists.ts | 11 |
1 files changed, 11 insertions, 0 deletions
diff --git a/packages/shared/types/lists.ts b/packages/shared/types/lists.ts index bd6786b0..474405ee 100644 --- a/packages/shared/types/lists.ts +++ b/packages/shared/types/lists.ts @@ -8,6 +8,11 @@ export const zNewBookmarkListSchema = z .string() .min(1, "List name can't be empty") .max(40, "List name is at most 40 chars"), + description: z + .string() + .min(0, "Description can be empty") + .max(100, "Description can have at most 100 chars") + .optional(), icon: z.string(), type: z.enum(["manual", "smart"]).optional().default("manual"), query: z.string().min(1).optional(), @@ -37,6 +42,7 @@ export const zNewBookmarkListSchema = z export const zBookmarkListSchema = z.object({ id: z.string(), name: z.string(), + description: z.string().nullish(), icon: z.string(), parentId: z.string().nullable(), type: z.enum(["manual", "smart"]).default("manual"), @@ -52,6 +58,11 @@ export const zEditBookmarkListSchema = z.object({ .min(1, "List name can't be empty") .max(40, "List name is at most 40 chars") .optional(), + description: z + .string() + .min(0, "Description can be empty") + .max(100, "Description can have at most 100 chars") + .nullish(), icon: z.string().optional(), parentId: z.string().nullish(), query: z.string().min(1).optional(), |
