Skip to content

Commit 13b21c0

Browse files
committed
docs: add note about nested path reporting in effect's schema filter error paths section
1 parent a35fe10 commit 13b21c0

File tree

1 file changed

+3
-1
lines changed

1 file changed

+3
-1
lines changed

content/src/content/docs/docs/schema/filters.mdx

Lines changed: 3 additions & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -151,7 +151,9 @@ Output:
151151

152152
## Specifying Error Paths
153153

154-
When validating forms or structured data, it's possible to associate specific error messages with particular fields or paths. This enhances error reporting and is especially useful when integrating with libraries like [react-hook-form](https://react-hook-form.com/).
154+
When validating forms or structured data, it's possible to associate specific error messages with particular fields or paths, **including nested paths within complex objects**. This enhances error reporting and is especially useful when integrating with libraries like [react-hook-form](https://react-hook-form.com/).
155+
156+
**Note**: To specify nested path in the `path` value: `["my", "nested", "path"]`.
155157

156158
**Example** (Matching Passwords)
157159

0 commit comments

Comments
 (0)