TheEdoRan / next-safe-action

Type safe and validated Server Actions in your Next.js (App Router) project.
https://next.next-safe-action.dev
BSD 3-Clause "New" or "Revised" License
1.38k stars 26 forks source link

feat(validation-errors): support customization of validation errors format #101

Closed TheEdoRan closed 1 month ago

TheEdoRan commented 1 month ago

This PR adds the ability to return a custom validation errors format (both main argument validation errors and bind arguments validation errors) to the client, via formatValidationErrors in schema method and formatBindArgsValidationErrors in bindArgsSchemas method.

re #98

vercel[bot] commented 1 month ago

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

Name Status Preview Comments Updated (UTC)
next-safe-action-example-app ✅ Ready (Inspect) Visit Preview 💬 Add feedback Apr 16, 2024 11:54am
next-safe-action-website ✅ Ready (Inspect) Visit Preview 💬 Add feedback Apr 16, 2024 11:54am
github-actions[bot] commented 1 month ago

:tada: This PR is included in version 7.0.0-next.21 :tada:

The release is available on:

Your semantic-release bot :package::rocket: