debian-mirror-gitlab/lib/api/entities/ci/lint/result.rb
2021-12-11 22:18:48 +05:30

17 lines
364 B
Ruby

# frozen_string_literal: true
module API
module Entities
module Ci
module Lint
class Result < Grape::Entity
expose :valid?, as: :valid
expose :errors
expose :warnings
expose :merged_yaml
expose :jobs, if: -> (result, options) { options[:include_jobs] }
end
end
end
end
end