18 lines
391 B
Ruby
18 lines
391 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 :includes
|
|
expose :jobs, if: -> (result, options) { options[:include_jobs] }
|
|
end
|
|
end
|
|
end
|
|
end
|
|
end
|