Skip to content

Commit babacae

Browse files
committed
format
1 parent 43e00d8 commit babacae

File tree

3 files changed

+3
-3
lines changed

3 files changed

+3
-3
lines changed

src/config.ts

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -87,7 +87,7 @@ export interface ValidationSchemaPluginConfig extends TypeScriptPluginConfig {
8787
* notAllowEmptyString: true
8888
* ```
8989
*/
90-
notAllowEmptyString?: boolean;
90+
notAllowEmptyString?: boolean;
9191
/**
9292
* @description Generates validation schema with more API based on directive schema.
9393
* @exampleMarkdown

src/zod/index.ts

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -118,7 +118,7 @@ const generateInputObjectFieldTypeZodSchema = (
118118
if (isNonNullType(parentType)) {
119119
if (config.notAllowEmptyString === true) {
120120
const tsType = tsVisitor.scalars[type.name.value];
121-
if (tsType === 'string') return `${gen}.min(1)`
121+
if (tsType === 'string') return `${gen}.min(1)`;
122122
}
123123
return gen;
124124
}

tests/yup.spec.ts

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -238,7 +238,7 @@ describe('yup', () => {
238238
'c: yup.boolean().defined(),',
239239
'd: yup.number().defined(),',
240240
'e: yup.number().defined()',
241-
]
241+
];
242242
for (const wantContain of wantContains) {
243243
expect(result.content).toContain(wantContain);
244244
}

0 commit comments

Comments
 (0)