diff --git a/content/docs/guides/conditional_validation.md b/content/docs/guides/conditional_validation.md index 6e629af..25ae44d 100644 --- a/content/docs/guides/conditional_validation.md +++ b/content/docs/guides/conditional_validation.md @@ -53,6 +53,7 @@ You may use a callback with the `requiredWhen` rule to express complex scenarios vine.object({ address: vine .string() + .optional() // highlight-start .requiredWhen((field) => { if (field.parent.country !== 'USA') {