-
Notifications
You must be signed in to change notification settings - Fork 39.9k
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
REST api - error messages should clearly explain the problem, 'invalid value' is too general #3087
Comments
Agree - there is now a place to stick the explanations in the On Mon, Dec 22, 2014 at 5:52 AM, abonas notifications@github.com wrote:
|
I checked pkg/api/validation/validation.go and it seems there are only two errors that do not have detailed explanation. I'll send a PR to fix this. |
Thanks for the pointer Brian! I'll send second PR to fix this one. |
Still second PR to be sent. |
For example, creating a service with id 'redis-master10012345678999' fails and the returned message contains the following:
"message": "service "redis-master10012345678999" is invalid: name: invalid value 'redis-master10012345678999'
'invalid value' is too general, users should understand exactly what is wrong with the input.
for example - is it too long? does it contain characters that are not allowed?
The text was updated successfully, but these errors were encountered: