From 19601310cd301ff5758a232a61866ae48c108313 Mon Sep 17 00:00:00 2001 From: Pierre Gerbelot Date: Tue, 14 Nov 2023 17:26:25 +0100 Subject: [PATCH] fix: set parent_id and scope required when listing variables --- src/resources/variable/Variable.yaml | 2 ++ 1 file changed, 2 insertions(+) diff --git a/src/resources/variable/Variable.yaml b/src/resources/variable/Variable.yaml index 15fcb90f..502f8ebf 100644 --- a/src/resources/variable/Variable.yaml +++ b/src/resources/variable/Variable.yaml @@ -5,12 +5,14 @@ get: parameters: - in: query name: parent_id + required: true schema: type: string format: uuid description: it filters the list by returning only the variables accessible by the selected parent_id. This field shall contain the id of a project, environment or service depending on the selected scope. Example, if scope = APPLICATION and parent_id=, the result will contain any variable accessible by the application. The result will contain also any variable declared at an higher scope. - in: query name: scope + required: true schema: $ref: '../../schemas/enums/APIVariableScope.yaml' description: the type of the parent_id (application, project, environment etc..).