From 6e449ac6037bf07529a94e55727c082767ee7889 Mon Sep 17 00:00:00 2001 From: Markus Thielker Date: Sun, 10 Mar 2024 12:38:57 +0100 Subject: [PATCH] N-FIN-5: fix entity name min. length --- src/lib/form-schemas/entityFormSchema.ts | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/src/lib/form-schemas/entityFormSchema.ts b/src/lib/form-schemas/entityFormSchema.ts index b93b1d4..f3e4412 100644 --- a/src/lib/form-schemas/entityFormSchema.ts +++ b/src/lib/form-schemas/entityFormSchema.ts @@ -3,6 +3,6 @@ import { EntityType } from '@prisma/client'; export const entityFormSchema = z.object({ id: z.number().positive().optional(), - name: z.string().min(3).max(32), + name: z.string().min(1).max(32), type: z.nativeEnum(EntityType), });