Skip to content

Commit

Permalink
fix zod coercer
Browse files Browse the repository at this point in the history
  • Loading branch information
unnoq committed Dec 27, 2024
1 parent 2fc6d2d commit 4240336
Showing 1 changed file with 1 addition and 1 deletion.
2 changes: 1 addition & 1 deletion packages/zod/src/coercer.ts
Original file line number Diff line number Diff line change
Expand Up @@ -30,7 +30,7 @@ import {

export class ZodCoercer implements SchemaCoercer {
coerce(schema: Schema, value: unknown): unknown {
if (schema && schema['~standard'].vendor !== 'zod') {
if (!schema || schema['~standard'].vendor !== 'zod') {
return value
}

Expand Down

0 comments on commit 4240336

Please sign in to comment.