From d35cf023b5365bf3115f3b67881442789378eaf8 Mon Sep 17 00:00:00 2001 From: =?UTF-8?q?Cintia=20S=C3=A1nchez=20Garc=C3=ADa?= Date: Thu, 31 Oct 2024 13:56:45 +0100 Subject: [PATCH] Fix API docs by updating policy data format 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 | 16 ++-------------- 1 file changed, 2 insertions(+), 14 deletions(-) diff --git a/docs/api/openapi.yaml b/docs/api/openapi.yaml index 2a1f555ec..28bcf956c 100644 --- a/docs/api/openapi.yaml +++ b/docs/api/openapi.yaml @@ -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: