-
Notifications
You must be signed in to change notification settings - Fork 385
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 an error code for invalid user names. #263
Conversation
@@ -100,6 +100,7 @@ paths: | |||
Part of the request was invalid. This may include one of the following error codes: | |||
|
|||
* ``M_USER_IN_USE`` : The desired user ID is already taken. | |||
* ``M_INVALID_USER_NAME`` : The desired user ID is not a valid user name. |
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
The other USER error refers to user IDs just as USER (M_USER_IN_USE), maybe use the same to be consistent?
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
Asked to about this to see what others though, suggestion seems to be M_INVALID_USERNAME to match the parameter to the API. Thoughts?
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
Works for me :)
(I can also live with it as it is)
(Also, it's a shame we're so inconsistent with our names everywhere)
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
Yeah :/
LGTM, one suggestion |
Still LGTM :) |
Add an error code for invalid user names.
No description provided.