diff --git a/src/types.ts b/src/types.ts index d6165b658..2c42b1e36 100644 --- a/src/types.ts +++ b/src/types.ts @@ -255,7 +255,7 @@ export abstract class ZodType< parsedType: getParsedType(data), }; - const maybeAsyncResult = this._parse({ data, path: [], parent: ctx }); + const maybeAsyncResult = this._parse({ data, path: ctx.path, parent: ctx }); const result = await (isAsync(maybeAsyncResult) ? maybeAsyncResult : Promise.resolve(maybeAsyncResult));