Skip to content
Open
Changes from all commits
Commits
File filter

Filter by extension

Filter by extension

Conversations
Failed to load comments.
Loading
Jump to
Jump to file
Failed to load files.
Loading
Diff view
Diff view
4 changes: 3 additions & 1 deletion content/src/content/docs/docs/schema/filters.mdx
Original file line number Diff line number Diff line change
Expand Up @@ -151,7 +151,9 @@ Output:

## Specifying Error Paths

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/).
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/).

**Note**: To specify nested path in the `path` value: `["my", "nested", "path"]`.

**Example** (Matching Passwords)

Expand Down