added zod for easier validation (wip)

This commit is contained in:
2024-05-29 01:27:51 +02:00
parent 58ca3fac22
commit 97062c0635
6 changed files with 33 additions and 8 deletions

View File

@ -0,0 +1,5 @@
import { z } from 'zod';
export const ZCharacterCreate = z.object({
name: z.string().min(3).max(255)
});