From 13b21c047ea84d95ea974d958c6917fd5ffd530d Mon Sep 17 00:00:00 2001 From: Giulio Bracci Date: Mon, 22 Sep 2025 22:22:01 +0200 Subject: [PATCH] docs: add note about nested path reporting in effect's schema `filter` error paths section --- content/src/content/docs/docs/schema/filters.mdx | 4 +++- 1 file changed, 3 insertions(+), 1 deletion(-) diff --git a/content/src/content/docs/docs/schema/filters.mdx b/content/src/content/docs/docs/schema/filters.mdx index bb243e6c5..080375de5 100644 --- a/content/src/content/docs/docs/schema/filters.mdx +++ b/content/src/content/docs/docs/schema/filters.mdx @@ -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)