We read every piece of feedback, and take your input very seriously.
To see all available qualifiers, see our documentation.
1 parent 9e1df49 commit f7afa36Copy full SHA for f7afa36
src/schema.ts
@@ -546,7 +546,7 @@ export default abstract class Schema<
546
[isIndex ? 'index' : 'key']: k,
547
path:
548
isIndex || k.includes('.')
549
- ? `${parentPath || ''}[${value ? k : `"${k}"`}]`
+ ? `${parentPath || ''}[${isIndex ? k : `"${k}"`}]`
550
: (parentPath ? `${parentPath}.` : '') + key,
551
};
552
0 commit comments