chrishoermann / zod-prisma-types

Generator creates zod types for your prisma models with advanced validation
Other
579 stars 43 forks source link

BooleanFieldRefInputSchema isn't generating #157

Closed CursedMun closed 1 year ago

CursedMun commented 1 year ago

inside BoolFilterSchema.ts there's a file missing BooleanFieldRefInputSchema

import type { Prisma } from '../../../infrastructure/db/generated';
import { z } from 'zod';
import { BooleanFieldRefInputSchema } from './BooleanFieldRefInputSchema'; <- this file is missing for some reason
import { NestedBoolFilterSchema } from './NestedBoolFilterSchema';

export const BoolFilterSchema: z.ZodType<Prisma.BoolFilter> = z.object({
  equals: z.union([ z.boolean(),z.lazy(() => BooleanFieldRefInputSchema) ]).optional(),
  not: z.union([ z.boolean(),z.lazy(() => NestedBoolFilterSchema) ]).optional(),
}).strict();

export default BoolFilterSchema;
CursedMun commented 1 year ago

Just to someone who comes here the reason was because of:

previewFeatures = ["fieldReference"] <- this was the proble