fapost should have at least one playstyle

This commit is contained in:
Kalle (Sendou)
2021-01-09 02:01:46 +02:00
parent 4efd7f8d27
commit 9bc5600922
3 changed files with 38 additions and 23 deletions

View File

@@ -3,7 +3,7 @@ import * as z from "zod";
export const FA_POST_CONTENT_LIMIT = 2000;
export const freeAgentPostSchema = z.object({
playstyles: z.array(z.enum(["FRONTLINE", "MIDLINE", "BACKLINE"])),
playstyles: z.array(z.enum(["FRONTLINE", "MIDLINE", "BACKLINE"])).min(1),
canVC: z.enum(["YES", "NO", "MAYBE"]),
content: z.string().max(FA_POST_CONTENT_LIMIT),
});