Skip to content
New issue

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

refactor: pass utils to validation errors shape customizer functions #263

Merged
merged 3 commits into from
Sep 8, 2024

Conversation

TheEdoRan
Copy link
Owner

Proposed changes

Code in this PR adds a second argument to handleValidationErrorsShape and handleBindArgsValidationErrorsShape functions, called utils, which is an object that contains clientInput, bindArgsClientInputs, metadata and ctx properties. This addition allows you to set dynamic validation errors based on current action execution data.

Related issue(s) or discussion(s)

re #256

Copy link

vercel bot commented Sep 8, 2024

The latest updates on your projects. Learn more about Vercel for Git ↗︎

Name Status Preview Comments Updated (UTC)
next-safe-action-playground ✅ Ready (Inspect) Visit Preview 💬 Add feedback Sep 8, 2024 5:19pm
next-safe-action-website ✅ Ready (Inspect) Visit Preview 💬 Add feedback Sep 8, 2024 5:19pm

Copy link

github-actions bot commented Sep 8, 2024

🎉 This PR is included in version 7.9.2 🎉

The release is available on:

Your semantic-release bot 📦🚀

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
Projects
None yet
Development

Successfully merging this pull request may close these issues.

1 participant