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 an error code for invalid user names. #263

Merged
merged 2 commits into from
Jan 15, 2016
Merged

Add an error code for invalid user names. #263

merged 2 commits into from
Jan 15, 2016

Conversation

dbkr
Copy link
Member

@dbkr dbkr commented Jan 14, 2016

No description provided.

@@ -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.
Copy link
Contributor

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?

Copy link
Member Author

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?

Copy link
Contributor

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)

Copy link
Member Author

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

Yeah :/

@illicitonion
Copy link
Contributor

LGTM, one suggestion

@illicitonion
Copy link
Contributor

Still LGTM :)

dbkr added a commit that referenced this pull request Jan 15, 2016
Add an error code for invalid user names.
@dbkr dbkr merged commit c69481d into master Jan 15, 2016
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.

2 participants