fix(zod): createMany types shouldn't be generated when Prisma version doesn't support it#1434
Conversation
… doesn't support it
WalkthroughWalkthroughThe recent updates involve enhancing the Zod schema generation capabilities within a software project. The changes primarily integrate a new feature, Changes
Thank you for using CodeRabbit. We offer it for free to the OSS community and would appreciate your support in helping us grow. If you find it useful, would you consider giving us a shout-out on your favorite social media? TipsChatThere are 3 ways to chat with CodeRabbit:
Note: Be mindful of the bot's finite context window. It's strongly recommended to break down tasks such as reading entire modules into smaller chunks. For a focused discussion, use review comments to chat about specific files and their changes, instead of using the PR comments. CodeRabbit Commands (invoked as PR comments)
Additionally, you can add CodeRabbit Configration File (
|
There was a problem hiding this comment.
Actionable comments posted: 0
Review Details
Configuration used: CodeRabbit UI
Review profile: CHILL
Files selected for processing (3)
- packages/schema/src/plugins/zod/generator.ts (4 hunks)
- packages/schema/src/plugins/zod/transformer.ts (3 hunks)
- packages/schema/src/plugins/zod/types.ts (2 hunks)
Additional comments not posted (5)
packages/schema/src/plugins/zod/types.ts (1)
16-16: Addition ofzmodeltoTransformerParamsenhances model-aware transformations.packages/schema/src/plugins/zod/generator.ts (2)
110-110: Correct implementation ofzmodelinTransformerinstantiation enhances context-aware schema transformations.
205-205: Consistent use ofzmodelinTransformerinstantiation for enum schema generation.packages/schema/src/plugins/zod/transformer.ts (2)
30-30: Addition ofzmodelas a private member inTransformersupports model-specific schema transformations.
42-42: Proper initialization ofzmodelinTransformerconstructor ensures it can utilize model-specific data.
No description provided.