mirror of
https://codeberg.org/MarkusThielker/finances.git
synced 2025-04-12 05:08:43 +00:00
N-FIN-5: fix entity name min. length
This commit is contained in:
parent
2793ca9204
commit
6e449ac603
1 changed files with 1 additions and 1 deletions
|
@ -3,6 +3,6 @@ import { EntityType } from '@prisma/client';
|
||||||
|
|
||||||
export const entityFormSchema = z.object({
|
export const entityFormSchema = z.object({
|
||||||
id: z.number().positive().optional(),
|
id: z.number().positive().optional(),
|
||||||
name: z.string().min(3).max(32),
|
name: z.string().min(1).max(32),
|
||||||
type: z.nativeEnum(EntityType),
|
type: z.nativeEnum(EntityType),
|
||||||
});
|
});
|
||||||
|
|
Loading…
Add table
Reference in a new issue