Welcome to mirror list, hosted at ThFree Co, Russian Federation.

gitlab.com/gitlab-org/gitlab-foss.git - Unnamed repository; edit this file 'description' to name the repository.
summaryrefslogtreecommitdiff
diff options
context:
space:
mode:
Diffstat (limited to 'lib/gitlab/ci/config/header/input.rb')
-rw-r--r--lib/gitlab/ci/config/header/input.rb5
1 files changed, 3 insertions, 2 deletions
diff --git a/lib/gitlab/ci/config/header/input.rb b/lib/gitlab/ci/config/header/input.rb
index 7f0edaaac4c..76a89a3080e 100644
--- a/lib/gitlab/ci/config/header/input.rb
+++ b/lib/gitlab/ci/config/header/input.rb
@@ -11,12 +11,13 @@ module Gitlab
include ::Gitlab::Config::Entry::Validatable
include ::Gitlab::Config::Entry::Attributable
- attributes :default, prefix: :input
+ attributes :default, :type, prefix: :input
validations do
- validates :config, type: Hash, allowed_keys: [:default]
+ validates :config, type: Hash, allowed_keys: [:default, :type]
validates :key, alphanumeric: true
validates :input_default, alphanumeric: true, allow_nil: true
+ validates :input_type, allow_nil: true, allowed_values: Interpolation::Inputs.input_types
end
end
end