mirror of
https://github.com/openfrontio/OpenFrontIO.git
synced 2026-06-22 08:04:17 +00:00
563d054ea5
## Description: This contains the update from zod 3.25 to 4. Change imports back from zod/v4 to just zod. No errors in VSCode. ## Please complete the following: - [x] I have added screenshots for all UI updates - [x] I process any text displayed to the user through translateText() and I've added it to the en.json file - [x] I have added relevant tests to the test directory - [x] I confirm I have thoroughly tested these changes and take full responsibility for any bugs introduced - [x] I have read and accepted the CLA aggreement (only required once). ## Please put your Discord username so you can be contacted if a bug or regression is found: tryout33
12 lines
263 B
TypeScript
12 lines
263 B
TypeScript
import { z } from "zod";
|
|
import { GameConfigSchema } from "./Schemas";
|
|
|
|
export const CreateGameInputSchema = GameConfigSchema.or(
|
|
z
|
|
.object({})
|
|
.strict()
|
|
.transform((val) => undefined),
|
|
);
|
|
|
|
export const GameInputSchema = GameConfigSchema.partial();
|