Fix incorrect types in Role (#1436)

Update Role.md

- Convert id to String
- Convert permissions to String
This commit is contained in:
Mahan 2024-04-29 08:00:41 +00:00 committed by GitHub
parent 07f305fe82
commit 237a8ad45b
No known key found for this signature in database
GPG key ID: B5690EEEBB952194

View file

@ -16,10 +16,10 @@ aliases: [
```json
{
"id": 3,
"id": "3",
"name": "Owner",
"color": "#ff3838",
"permissions": 1048575,
"permissions": "1048575",
"highlighted": true
}
```
@ -29,7 +29,7 @@ aliases: [
### `id` {#id}
**Description:** The ID of the Role in the database.\
**Type:** Integer\
**Type:** String\
**Version history:**\
4.0.0 - added
@ -50,7 +50,7 @@ aliases: [
### `permissions` {#permissions}
**Description:** A bitmask that represents the sum of all permissions granted to the role.\
**Type:** Integer\
**Type:** String\
**Version history:**\
4.0.0 - added
@ -127,4 +127,4 @@ To determine the permissions available to a certain role, convert the `permissio
## See also
{{< caption-link url="https://github.com/mastodon/mastodon/blob/main/app/serializers/rest/role_serializer.rb" caption="app/serializers/rest/role_serializer.rb" >}}
{{< caption-link url="https://github.com/mastodon/mastodon/blob/main/app/serializers/rest/role_serializer.rb" caption="app/serializers/rest/role_serializer.rb" >}}