summaryrefslogtreecommitdiff
path: root/docs/api
diff options
context:
space:
mode:
authorLibravatar tobi <31960611+tsmethurst@users.noreply.github.com>2023-02-20 17:00:44 +0100
committerLibravatar GitHub <noreply@github.com>2023-02-20 17:00:44 +0100
commite8a04b7ce1fdb31febca7894229247207369bc85 (patch)
tree6650cc05351f39dc25b32d07858e93f5d17561f0 /docs/api
parent[feature] About page (#1495) (diff)
downloadgotosocial-e8a04b7ce1fdb31febca7894229247207369bc85.tar.xz
[bugfix] Fix account roles (#1542)
* Change account role from string to object * Update tests * small fixes + swagger docs --------- Co-authored-by: zowhoey <11893985+zowhoey@users.noreply.github.com>
Diffstat (limited to 'docs/api')
-rw-r--r--docs/api/swagger.yaml20
1 files changed, 11 insertions, 9 deletions
diff --git a/docs/api/swagger.yaml b/docs/api/swagger.yaml
index 4a4d1af1d..ce3eecbeb 100644
--- a/docs/api/swagger.yaml
+++ b/docs/api/swagger.yaml
@@ -256,12 +256,7 @@ definitions:
type: string
x-go-name: Note
role:
- description: |-
- Role of the account on this instance.
- Omitted for remote accounts.
- example: user
- type: string
- x-go-name: Role
+ $ref: '#/definitions/accountRole'
source:
$ref: '#/definitions/Source'
statuses_count:
@@ -346,6 +341,15 @@ definitions:
type: object
x-go-name: Relationship
x-go-package: github.com/superseriousbusiness/gotosocial/internal/api/model
+ accountRole:
+ properties:
+ name:
+ type: string
+ x-go-name: Name
+ title: AccountRole models the role of an account.
+ type: object
+ x-go-name: AccountRole
+ x-go-package: github.com/superseriousbusiness/gotosocial/internal/api/model
adminAccountInfo:
properties:
account:
@@ -423,9 +427,7 @@ definitions:
type: string
x-go-name: Locale
role:
- description: The current role of the account.
- type: string
- x-go-name: Role
+ $ref: '#/definitions/accountRole'
silenced:
description: Whether the account is currently silenced
type: boolean