Skip to content

Commit

Permalink
Fix API docs by updating policy data format
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 committed Oct 31, 2024
1 parent 7ffd6cb commit d35cf02
Showing 1 changed file with 2 additions and 14 deletions.
16 changes: 2 additions & 14 deletions docs/api/openapi.yaml
Original file line number Diff line number Diff line change
Expand Up @@ -3921,21 +3921,9 @@ 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: "{\n \"roles\": {\n \"owner\": {\n \"users\": [\"user1\"]\n },\n \"customRole1\": {\n \"users\": [\"member1\", \"member2\"],\n \"allowed_actions\": [\n \"addOrganizationMember\",\n \"addOrganizationRepository\"\n ]\n }\n }\n}"
ChangelogItemKind:
type: string
enum:
Expand Down

0 comments on commit d35cf02

Please sign in to comment.