Remove json schema for now.

This commit is contained in:
Bradley Shellnut 2022-12-04 22:37:49 -08:00
parent 699b79eaed
commit 877d2a5956

View file

@ -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>;