-
Notifications
You must be signed in to change notification settings - Fork 309
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
"getUser()" method returning an array, mismatch with TS definitions #590
Comments
Hey @danawoodman thanks for opening the issue. It sounds like We will need to investigate this a little bit to decide on a solution. If we change what Thanks again for calling this out, we will have a look. |
@davidpatrick Thanks, yeah that is what I was expecting. A |
Just noticed that EDIT: Nevermind it is |
@danawoodman I'm not seeing a |
@davidpatrick ahh you're right, must have been a hard day when I posted that! 🤦 |
@danawoodman just tested this out, and the getUser method does return the single user object. I think the problem is that you are passing in the id and not the object with id as specified in the documentation
I still see the confusion of this method though. The problem with changing it is that we could have users doing Thanks again for giving the confusion some visibility |
Describe the problem
As request in #572 from my comment here I'm reporting what I think is a mismatch in the TS definitions and the Management response for
getUser
.It appears
getUser()
is returning an array but the TS definitions are expecting an object. I would also assume that the method should return a single objectWhat was the expected behavior?
Should return a single object for
getUser
as name is singular not plural.Reproduction
Logging out the response from
getUser(id)
returns an array of user objects.Environment
The text was updated successfully, but these errors were encountered: