-
Notifications
You must be signed in to change notification settings - Fork 155
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
Add derive Deserialize to ValidationErrors #358
Comments
Tried my hand at this and it looks like this is not possible without some pretty significant breaking changes due to the &'static lifetime |
It should probably be a Cow<static, str> like the rest |
Had the same thought while using |
ifiokjr
added a commit
to ifiokjr/validator
that referenced
this issue
Jan 9, 2025
Use `Cow<'static, str>` as suggested in Keats#358.
Keats
pushed a commit
that referenced
this issue
Jan 20, 2025
Use `Cow<'static, str>` as suggested in #358.
Sign up for free
to join this conversation on GitHub.
Already have an account?
Sign in to comment
The ValidationErrors type already implements Serialize, presumably to allow sending the error as json in an API. It would be helpful to allow implement Deserialize to read those errors back out on the client side in frontend frameworks like Leptos
The text was updated successfully, but these errors were encountered: