-
Notifications
You must be signed in to change notification settings - Fork 141
Help Wanted: User props is not fully described in API reference #643
Comments
@mkraft - Would a member of your team be able to assist with this issue? |
@vblz The word "object" is actually correct in this case in that the required type is an object, an object that happens to have other constraints. Also the constraints are detailed within the API documentation. . |
@mkraft I didn't mean whole object to pass, but only
but there is no mention about this limitation in api documentation and only way to find it out is checking source code. |
@vblz Ah yes good point, |
@mkraft it's better to add "help wanted" tag |
Copied the request to https://mattermost.atlassian.net/browse/MM-42462. |
I would like to work on this. @mkraft @cwarnermm Can you assign this to me? |
Everywhere in the API reference User Props is described as
object
. For instance https://api.mattermost.com/#operation/CreateUser .Regarding to https://www.json.org/json-en.html JSON object can have members of any JSON types.
But in official drivers the field
props
has typemap[string]string
https://github.com/mattermost/mattermost-server/blob/d1eeafb29ff822cf6d9850a5307ab37c61fbc445/model/user.go#L85
https://github.com/mattermost/mattermost-redux/blob/3d1028034d7677adfda58e91b9a5dcaf1bc0ff99/src/types/users.ts#L42
Proposal:
In the API reference clearly specify that User Props can have members only of string type
The text was updated successfully, but these errors were encountered: