Skip to content

Commit

Permalink
made short description required.
Browse files Browse the repository at this point in the history
  • Loading branch information
aliciach1 committed Nov 18, 2023
1 parent 548a8a4 commit 76447f8
Showing 1 changed file with 1 addition and 1 deletion.
2 changes: 1 addition & 1 deletion src/lib/schemas.ts
Original file line number Diff line number Diff line change
Expand Up @@ -14,7 +14,7 @@ export const ItemSchema = z.object({
foundDate: z.coerce.date(),
foundLocation: z.nativeEnum(Location),
foundDescription: z.string(),
shortDescription: z.string(),
shortDescription: z.string().min(3),
categories: z.array(z.nativeEnum(Category)),
color: z.nativeEnum(Color),
value: z.nativeEnum(Value),
Expand Down

0 comments on commit 76447f8

Please sign in to comment.