chrishoermann / zod-prisma-types

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

[BUG] Not generating all schemas when using `prismaSchemaFolder` #262

Open kachar opened 3 months ago

kachar commented 3 months ago

Describe the bug

When prismaSchemaFolder preview feature is enabled only the zod schema from the main schema.prisma file is getting generated.

Package versions (please complete the following information):

Additional context

https://www.prisma.io/docs/orm/prisma-schema/overview/location#multi-file-prisma-schema

generator client {
    provider        = "prisma-client-js"
    previewFeatures = ["prismaSchemaFolder"]
}

generator zod {
    provider                         = "zod-prisma-types"
    createInputTypes                 = false
    createOptionalDefaultValuesTypes = true
    addInputTypeValidation           = true
}