We read every piece of feedback, and take your input very seriously.
To see all available qualifiers, see our documentation.
Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.
By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.
Already on GitHub? Sign in to your account
Describe the bug Validation errors reported by ‘checkItems’ should be displayed in the same way as other errors
To Reproduce Steps to reproduce the behavior:
Codesandbox link (Required) https://stackblitz.com/edit/vitejs-vite-yj5g5r?file=src%2FApp.tsx
Expected behavior Validation errors reported by ‘checkItems’ should be displayed in the same way as other errors
Form schema:
const FormSchema = v.object({ test: v.pipe( v.array( v.object({ value: v.pipe(v.string(), v.minLength(4)), }) ), v.checkItems( (item, index, values) => values.map((v) => v.value).indexOf(item.value) === index, 'Duplicate items' ) ), });
Error displayed properly:
Error not displayed properly:
Additional context
"dependencies": { "@hookform/resolvers": "^3.9.0", "react": "^18.3.1", "react-dom": "^18.3.1", "react-hook-form": "^7.52.1", "valibot": "^0.36.0" }
The text was updated successfully, but these errors were encountered:
No branches or pull requests
Describe the bug
Validation errors reported by ‘checkItems’ should be displayed in the same way as other errors
To Reproduce
Steps to reproduce the behavior:
Codesandbox link (Required)
https://stackblitz.com/edit/vitejs-vite-yj5g5r?file=src%2FApp.tsx
Expected behavior
Validation errors reported by ‘checkItems’ should be displayed in the same way as other errors
Form schema:
Error displayed properly:
Error not displayed properly:
Additional context
The text was updated successfully, but these errors were encountered: