refactor: move slugSchema into schemas file and rename to idSchema

This commit is contained in:
trafficlunar 2025-04-20 17:37:38 +01:00
parent b369d1f5c7
commit 48c99e442f
3 changed files with 9 additions and 12 deletions

View file

@ -32,6 +32,11 @@ export const tagsSchema = z
.min(1, { message: "There must be at least 1 tag" })
.max(8, { message: "There cannot be more than 8 tags" });
export const idSchema = z.coerce
.number({ message: "Mii ID must be a number" })
.int({ message: "Mii ID must be an integer" })
.positive({ message: "Mii ID must be valid" });
// Account Info
export const usernameSchema = z
.string()