optional:groups,as: :group_ids,type: Array[Integer],coerce_with: ::API::Validations::Types::CommaSeparatedToIntegerArray.coerce,desc: 'The group ids for this rule'
optional:protected_branch_ids,type: Array[Integer],coerce_with: ::API::Validations::Types::CommaSeparatedToIntegerArray.coerce,desc: 'The protected branch ids for this rule'
optional:scanners,type: Array[String],desc: 'The security scanners to be considered by the approval rule'
optional:vulnerabilities_allowed,type: Integer,desc: 'The number of vulnerabilities allowed for this rule'
end
params:update_project_approval_ruledo
...
...
@@ -24,6 +25,7 @@ module API
optional:protected_branch_ids,type: Array[Integer],coerce_with: ::API::Validations::Types::CommaSeparatedToIntegerArray.coerce,desc: 'The protected branch ids for this rule'
optional:remove_hidden_groups,type: Boolean,desc: 'Whether hidden groups should be removed'
optional:scanners,type: Array[String],desc: 'The security scanners to be considered by the approval rule'
optional:vulnerabilities_allowed,type: Integer,desc: 'The number of vulnerabilities allowed for this rule'