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

Expand custom error messages to include API specific errors #37

Open
juan88 opened this issue May 10, 2020 · 0 comments
Open

Expand custom error messages to include API specific errors #37

juan88 opened this issue May 10, 2020 · 0 comments

Comments

@juan88
Copy link

juan88 commented May 10, 2020

Is it possible to add or enlarge an existing example so as to include custom error messages that should be returned to the consumer of the API we build?

I'm not able to add a custom validator and add as well a application specific defined message that is more descriptive than:

{"error":"Key: 'Booking.CheckOut' Error:Field validation for 'CheckOut' failed on the 'required' tag"}%

Thanks!

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

No branches or pull requests

1 participant