Skip to content

Commit

Permalink
style: Update comment and type assertion
Browse files Browse the repository at this point in the history
  • Loading branch information
rifont committed Nov 8, 2024
1 parent 024d6e0 commit db82a4c
Showing 1 changed file with 2 additions and 2 deletions.
4 changes: 2 additions & 2 deletions packages/framework/src/validators/zod.validator.ts
Original file line number Diff line number Diff line change
Expand Up @@ -31,8 +31,8 @@ export class ZodValidator implements Validator<ZodSchema> {
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
Expand Down

0 comments on commit db82a4c

Please sign in to comment.