14 lines
298 B
TypeScript
14 lines
298 B
TypeScript
import { z } from "zod";
|
|
|
|
export const lobbyPatchSchema = z.object({
|
|
name: z
|
|
.string()
|
|
.min(2, {
|
|
message: "Name must contain at least 2 characters",
|
|
})
|
|
.max(255, {
|
|
message: "Name can only contain up to 255 characters",
|
|
}),
|
|
maxPlayers: z.number().default(0),
|
|
});
|