Files
OpenFrontIO/src/core/WorkerSchemas.ts
T
Omri 3597f7b326 upgrade to zod 4 (#1161)
## Description:
updates zod to v4
closes #873 

## 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 understand that submitting code with bugs that could have been
caught through manual testing blocks releases and new features for all
contributors

## Please put your Discord username so you can be contacted if a bug or
regression is found:

omrih

---------

Co-authored-by: Scott Anderson <662325+scottanderson@users.noreply.github.com>
2025-06-19 19:34:05 +00:00

12 lines
266 B
TypeScript

import { z } from "zod/v4";
import { GameConfigSchema } from "./Schemas";
export const CreateGameInputSchema = GameConfigSchema.or(
z
.object({})
.strict()
.transform((val) => undefined),
);
export const GameInputSchema = GameConfigSchema.partial();