diff --git a/src/traits/JsonifiedZodSchemaObject.ts b/src/traits/JsonifiedZodSchemaObject.ts index 4fe18b0..07f1a6e 100644 --- a/src/traits/JsonifiedZodSchemaObject.ts +++ b/src/traits/JsonifiedZodSchemaObject.ts @@ -138,7 +138,11 @@ export const JsonifiedZodSchemaObject = < } dejsonifyEffect(params?: Partial) { - return parseZodSchemaEffect(this.constructor.dejsonifySchema, this, params) + return parseZodSchemaEffect( + this.constructor.of.pipeSchemaIntoInstance(this.constructor.dejsonifySchema), + this, + params, + ) } }) .build()