From 927ac73d60bf92719bfa07be55d5de16014633a4 Mon Sep 17 00:00:00 2001 From: =?UTF-8?q?Cintia=20S=C3=A1nchez=20Garc=C3=ADa?= Date: Thu, 31 Oct 2024 16:24:03 +0100 Subject: [PATCH] Fix API docs by updating policy data format (#4125) MIME-Version: 1.0 Content-Type: text/plain; charset=UTF-8 Content-Transfer-Encoding: 8bit Signed-off-by: Cintia Sánchez García --- docs/api/openapi.yaml | 27 +++++++++++++-------------- 1 file changed, 13 insertions(+), 14 deletions(-) diff --git a/docs/api/openapi.yaml b/docs/api/openapi.yaml index 2a1f555ec..c8671a4f5 100644 --- a/docs/api/openapi.yaml +++ b/docs/api/openapi.yaml @@ -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: