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

Any way for error to display json tag name instead of struct tag name? #2

Open
msaron opened this issue Jan 25, 2017 · 1 comment
Open

Comments

@msaron
Copy link

msaron commented Jan 25, 2017

Is there any way for error to display json tag name instead of struct tag name? That way, the error response to an api request would be meaningful as it would be responding to the same field names as the request. The mccoyst library has implemented this but I don't know how to get that functionality into this library as I would like to use this library. Thanks.

@nqv
Copy link
Member

nqv commented Jan 25, 2017

Thanks for your suggestion. I'm going to add localization support for error message as well. Will think about the way to get json or xml tag.

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

No branches or pull requests

2 participants