links.rb 775 Bytes
Newer Older
1 2 3 4 5 6 7 8 9 10 11 12 13 14 15 16 17 18 19 20 21 22 23 24 25 26 27 28 29 30 31
# frozen_string_literal: true

module Gitlab
  module Ci
    class Config
      module Entry
        ##
        # Entry that represents a configuration of release:assets:links.
        #
        class Release
          class Assets
            class Links < ::Gitlab::Config::Entry::Node
              include ::Gitlab::Config::Entry::Configurable
              include ::Gitlab::Config::Entry::Validatable

              entry :link, Entry::Release::Assets::Link, description: 'Release assets:links:link.'

              validations do
                validates :config, type: Array, presence: true
              end

              def skip_config_hash_validation?
                true
              end
            end
          end
        end
      end
    end
  end
end