Replies: 1 comment 1 reply
-
Hi, this feature is already implemented in the library: |
Beta Was this translation helpful? Give feedback.
1 reply
Sign up for free
to join this conversation on GitHub.
Already have an account?
Sign in to comment
-
next-safe-action currently provides robust input validation for server actions using various schema validation libraries. To enhance type safety and consistency, I propose extending this functionality to include output validation as well.
Feature Description
Implement a mechanism to define and validate the output schema of server actions, similar to how input schemas are currently handled. This would allow developers to:
Proposed API
Extend the current API to include an
outputSchema
option:Benefits
Implementation Considerations
Discussion Points
I believe this feature would significantly enhance the already powerful next-safe-action library, providing developers with even more tools to create robust and type-safe server actions.
Beta Was this translation helpful? Give feedback.
All reactions