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

Add MarshalJSON method to the error validation structs. #1

Merged
merged 2 commits into from Jun 24, 2016
Merged

Add MarshalJSON method to the error validation structs. #1

merged 2 commits into from Jun 24, 2016

Conversation

v4n
Copy link
Contributor

@v4n v4n commented Jun 23, 2016

Per golang/go#10748 , marshalling an error creates unexpected results.
For example, marshaling validation.Errors results in a response like {"Email": {}, "Name": ""} where the error message is blank.

@qiangxue
Copy link
Member

Thank you very much!

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

Successfully merging this pull request may close these issues.

None yet

2 participants