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 type map[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
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
propshas typemap[string]stringhttps://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