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 5f133bc commit 7e7f26eCopy full SHA for 7e7f26e
packages/common/src/schemas/dataShapeToZod.ts
@@ -19,7 +19,7 @@ function fieldTypeToZodSchema(field: FieldDefinition): z.ZodTypeAny {
19
if (field.name === 'Input') {
20
baseSchema = baseSchema
21
.refine(
22
- (value) => value.includes('{{') && value.includes('}}'),
+ (value): value is string => typeof value === 'string' && value.includes('{{') && value.includes('}}'),
23
'Must contain at least one blank in format {{answer}} or {{answer1|answer2||distractor}}'
24
)
25
.describe(
0 commit comments