We read every piece of feedback, and take your input very seriously.
To see all available qualifiers, see our documentation.
There was an error while loading. Please reload this page.
1 parent 0bce8ad commit 50d7222Copy full SHA for 50d7222
src/zod/index.ts
@@ -125,7 +125,7 @@ const generateInputObjectFieldTypeZodSchema = (
125
if (isNonNullType(parentType)) {
126
if (config.notAllowEmptyString === true) {
127
const tsType = tsVisitor.scalars[type.name.value];
128
- if (tsType === 'string') return `${gen}.min(1)`;
+ if (tsType === 'string') return `${appliedDirectivesGen}.min(1)`;
129
}
130
return appliedDirectivesGen;
131
0 commit comments