You signed in with another tab or window. Reload to refresh your session.You signed out in another tab or window. Reload to refresh your session.You switched accounts on another tab or window. Reload to refresh your session.Dismiss alert
API: PUT /topics/:topicId/members/users and PUT /groups/:groupId/members/users to return HTTP 422 if any of the userId-s is not a valid email or UUID.
#39
Initial implementation of PUT /topics/:topicId/members/users and PUT /groups/:groupId/members/users just ignore invalid UUID-s and e-mails. The shortcoming of this is that if you insert invalid e-mail/UUID, you will never know if the invites actually succeeded.
To provide adequate feedback, he input data should be validated and an error code returned.
TODO
PUT /topics/:topicId/members/users to return HTTP 422 IF any of the userId is invalid e-mail or UUID. Update tests.
PUT /groups/:groupId/members/users to return HTTP 422 IF any of the userId is invalid e-mail or UUID. Update tests.
Overview
Initial implementation of
PUT /topics/:topicId/members/users
andPUT /groups/:groupId/members/users
just ignore invalid UUID-s and e-mails. The shortcoming of this is that if you insert invalid e-mail/UUID, you will never know if the invites actually succeeded.To provide adequate feedback, he input data should be validated and an error code returned.
TODO
PUT /topics/:topicId/members/users
to return HTTP 422 IF any of theuserId
is invalid e-mail or UUID. Update tests.PUT /groups/:groupId/members/users
to return HTTP 422 IF any of theuserId
is invalid e-mail or UUID. Update tests.The text was updated successfully, but these errors were encountered: