Skip to content

Commit

Permalink
Fix API docs by updating policy data format (#4125)
Browse files Browse the repository at this point in the history
Signed-off-by: Cintia Sánchez García <cynthiasg@icloud.com>
  • Loading branch information
cynthia-sg authored Oct 31, 2024
1 parent 7ffd6cb commit 927ac73
Showing 1 changed file with 13 additions and 14 deletions.
27 changes: 13 additions & 14 deletions docs/api/openapi.yaml
Original file line number Diff line number Diff line change
Expand Up @@ -3921,21 +3921,20 @@ components:
data.roles[role].users[_] == input.user
}
policy_data:
type: object
type: string
nullable: false
additionalProperties: true
example:
roles:
owner:
users:
- user1
customRole1:
users:
- member1
- member2
allowed_actions:
- addOrganizationMember
- addOrganizationRepository
example: |
{
"roles": {
"owner": {
"users": ["user1"]
},
"customRole1": {
"users": ["member1", "member2"],
"allowed_actions": ["addOrganizationMember", "addOrganizationRepository"]
}
}
}
ChangelogItemKind:
type: string
enum:
Expand Down

0 comments on commit 927ac73

Please sign in to comment.