model Project {
id Int @id @default(autoincrement())
title String /// @zod.string.min(4).max(10)
creatorId String
author User @relation(fields: [creatorId], references: [id])
@@index([creatorId])
}
ProjectCreateInputSchema show the correct validations:
@ghoshnirmalya thanks for the report. This is currently not implemented. I need to refine the logic that determines if the inputSchema should be validated.
Description
For the following model:
ProjectCreateInputSchema
show the correct validations:However,
ProjectCreateWithoutAuthorInputSchema
doesn't show the correct validations:Expected behaviour
The
title
attribute should be the following: