Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

fix: set parent_id and scope required when listing variables #502

Merged
merged 1 commit into from
Nov 14, 2023
Merged
Changes from all commits
Commits
File filter

Filter by extension

Filter by extension

Conversations
Failed to load comments.
Loading
Jump to
Jump to file
Failed to load files.
Loading
Diff view
Diff view
2 changes: 2 additions & 0 deletions src/resources/variable/Variable.yaml
Original file line number Diff line number Diff line change
Expand Up @@ -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=<application_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..).
Expand Down
Loading