diff --git a/packages/framework/src/validators/zod.validator.ts b/packages/framework/src/validators/zod.validator.ts index 5d383111cb0..e428b9bf82e 100644 --- a/packages/framework/src/validators/zod.validator.ts +++ b/packages/framework/src/validators/zod.validator.ts @@ -31,8 +31,8 @@ export class ZodValidator implements Validator { try { const { zodToJsonSchema } = await import('zod-to-json-schema'); - // @ts-expect-error - zod-to-json-schema is not using JSONSchema7 - return zodToJsonSchema(schema); + // TODO: zod-to-json-schema is not using JSONSchema7 + return zodToJsonSchema(schema) as JsonSchema; } catch (error) { if ((error as Error)?.message?.includes('Cannot find module')) { // eslint-disable-next-line no-console