Skip to content

Commit

Permalink
Fixes a typo in the asNestedTest() path rendering logic causing #2156 (
Browse files Browse the repository at this point in the history
  • Loading branch information
ir0nCr055 authored Jan 9, 2024
1 parent 9e1df49 commit f7afa36
Showing 1 changed file with 1 addition and 1 deletion.
2 changes: 1 addition & 1 deletion src/schema.ts
Original file line number Diff line number Diff line change
Expand Up @@ -546,7 +546,7 @@ export default abstract class Schema<
[isIndex ? 'index' : 'key']: k,
path:
isIndex || k.includes('.')
? `${parentPath || ''}[${value ? k : `"${k}"`}]`
? `${parentPath || ''}[${isIndex ? k : `"${k}"`}]`
: (parentPath ? `${parentPath}.` : '') + key,
};

Expand Down

0 comments on commit f7afa36

Please sign in to comment.