Skip to content

Commit f7afa36

Browse files
authored
Fixes a typo in the asNestedTest() path rendering logic causing #2156 (#2157)
1 parent 9e1df49 commit f7afa36

File tree

1 file changed

+1
-1
lines changed

1 file changed

+1
-1
lines changed

src/schema.ts

+1-1
Original file line numberDiff line numberDiff line change
@@ -546,7 +546,7 @@ export default abstract class Schema<
546546
[isIndex ? 'index' : 'key']: k,
547547
path:
548548
isIndex || k.includes('.')
549-
? `${parentPath || ''}[${value ? k : `"${k}"`}]`
549+
? `${parentPath || ''}[${isIndex ? k : `"${k}"`}]`
550550
: (parentPath ? `${parentPath}.` : '') + key,
551551
};
552552

0 commit comments

Comments
 (0)