From af6c4c7f0a30e736b26e11d8ff18fba759a7657c Mon Sep 17 00:00:00 2001 From: Libor Pichler Date: Tue, 2 Jul 2024 17:02:27 +0200 Subject: [PATCH] Fix request body for roles endpoint for PUT method in openapi spec --- docs/source/specs/openapi.json | 24 +++++++++++++++++++++++- 1 file changed, 23 insertions(+), 1 deletion(-) diff --git a/docs/source/specs/openapi.json b/docs/source/specs/openapi.json index 0f3009c62..d09902d40 100644 --- a/docs/source/specs/openapi.json +++ b/docs/source/specs/openapi.json @@ -2054,7 +2054,7 @@ "content": { "application/json": { "schema": { - "$ref": "#/components/schemas/RoleWithAccess" + "$ref": "#/components/schemas/RolePut" } } }, @@ -4222,6 +4222,28 @@ } } }, + "RolePut": { + "allOf": [ + { + "$ref": "#/components/schemas/RolePatch" + }, + { + "type": "object", + "required": [ + "access" + ], + "properties": { + "access": { + "type": "array", + "items": { + "$ref": "#/components/schemas/Access" + }, + "description": "List of access permissions. This array can be empty." + } + } + } + ] + }, "RoleWithAccess": { "allOf": [ {