refactor: cleanup - schema edition

whole bunch of refactors (especially with schemas)
This commit is contained in:
trafficlunar 2025-04-12 17:01:16 +01:00
parent 626016d689
commit 2e4611520d
7 changed files with 40 additions and 36 deletions

View file

@ -2,6 +2,7 @@ import { z } from "zod";
export const nameSchema = z
.string()
.trim()
.min(2, { message: "Name must be at least 2 characters long" })
.max(64, { message: "Name cannot be more than 64 characters long" })
.regex(/^[a-zA-Z0-9-_. ']+$/, {