Skip to content

Commit dc27ee5

Browse files
authored
feat(API): Include roles in account response (#811)
1 parent cade985 commit dc27ee5

File tree

2 files changed

+16
-1
lines changed

2 files changed

+16
-1
lines changed

doc/compiled.json

Lines changed: 11 additions & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -739,11 +739,21 @@
739739
},
740740
"slug": {
741741
"type": "string"
742+
},
743+
"roles": {
744+
"type": "array",
745+
"items": {
746+
"type": "string"
747+
}
742748
}
743749
},
744750
"example": {
745751
"slug": "company-account",
746-
"subscription": "subscription"
752+
"subscription": "subscription",
753+
"roles": [
754+
"Owner",
755+
"Admin"
756+
]
747757
}
748758
}
749759
]

schemas/account_details.yaml

Lines changed: 5 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -9,6 +9,11 @@ account_details:
99
"$ref": "./subscription.yaml#/subscription"
1010
slug:
1111
type: string
12+
roles:
13+
type: array
14+
items:
15+
type: string
1216
example:
1317
slug: company-account
1418
subscription: subscription
19+
roles: [Owner, Admin]

0 commit comments

Comments
 (0)