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
The documentation does not list roles (plural) attribute in the Account entity but it does list role (singular) attribute. I found out by inspecting the Instance entity of various instances using this endpoint: GET /api/v2/instance.
It returns an array of Role entities but permissions and highlighted attribute are absent. So the documentation for Role entity should mark these attributes as nullable.
The text was updated successfully, but these errors were encountered:
At this time, the CredentialAccount entity does have a (singular) role attribute, so that is correct.
The Account entity is indeed lacking documentation for the roles attribute added in Mastodon v4.1.0. The type of the CredentialAccountrole attribute is slightly different from the Accountroles, which indeed omits permissions and highlighted.
So what you are saying is that CredentialAccount entity role attribute return a Role entity but roles attribute return an array of a different entity type? If so then that entity needs to be added to the API Entities list.
The documentation does not list
roles
(plural) attribute in theAccount
entity but it does listrole
(singular) attribute. I found out by inspecting theInstance
entity of various instances using this endpoint:GET /api/v2/instance
.It returns an array of
Role
entities butpermissions
andhighlighted
attribute are absent. So the documentation forRole
entity should mark these attributes as nullable.The text was updated successfully, but these errors were encountered: