mirror of
https://github.com/BradNut/boredgame
synced 2025-09-08 17:40:22 +00:00
Remove json schema for now.
This commit is contained in:
parent
699b79eaed
commit
877d2a5956
1 changed files with 4 additions and 4 deletions
|
|
@ -1,5 +1,5 @@
|
||||||
import { z, ZodNumber, ZodOptional } from 'zod';
|
import { z, ZodNumber, ZodOptional } from 'zod';
|
||||||
import zodToJsonSchema from 'zod-to-json-schema';
|
// import zodToJsonSchema from 'zod-to-json-schema';
|
||||||
|
|
||||||
export const BoardGameSearch = z.object({
|
export const BoardGameSearch = z.object({
|
||||||
minAge: z.number(),
|
minAge: z.number(),
|
||||||
|
|
@ -152,8 +152,8 @@ export const game_schema = z.object({
|
||||||
playtime: z.string()
|
playtime: z.string()
|
||||||
});
|
});
|
||||||
|
|
||||||
export const game_raw_schema_json = zodToJsonSchema(game_schema, {
|
// export const game_raw_schema_json = zodToJsonSchema(game_schema, {
|
||||||
$refStrategy: 'none',
|
// $refStrategy: 'none',
|
||||||
});
|
// });
|
||||||
|
|
||||||
export type Game = z.infer<typeof game_schema>;
|
export type Game = z.infer<typeof game_schema>;
|
||||||
|
|
|
||||||
Loading…
Reference in a new issue