Merge branch 'api_make_protected_boolean_type' into 'master'

protected should be Boolean type

See merge request gitlab-org/gitlab-ce!28766
This commit is contained in:
Jan Provaznik 2019-05-28 06:58:37 +00:00
commit c7fc58bcfc
2 changed files with 7 additions and 2 deletions

View File

@ -0,0 +1,5 @@
---
title: 'API: change protected attribute type to Boolean'
merge_request: 28766
author:
type: other

View File

@ -54,7 +54,7 @@ module API
params do
requires :key, type: String, desc: 'The key of the variable'
requires :value, type: String, desc: 'The value of the variable'
optional :protected, type: String, desc: 'Whether the variable is protected'
optional :protected, type: Boolean, desc: 'Whether the variable is protected'
optional :masked, type: Boolean, desc: 'Whether the variable is masked'
optional :variable_type, type: String, values: Ci::Variable.variable_types.keys, desc: 'The type of variable, must be one of env_var or file. Defaults to env_var'
@ -81,7 +81,7 @@ module API
params do
optional :key, type: String, desc: 'The key of the variable'
optional :value, type: String, desc: 'The value of the variable'
optional :protected, type: String, desc: 'Whether the variable is protected'
optional :protected, type: Boolean, desc: 'Whether the variable is protected'
optional :masked, type: Boolean, desc: 'Whether the variable is masked'
optional :variable_type, type: String, values: Ci::Variable.variable_types.keys, desc: 'The type of variable, must be one of env_var or file'