17 lines
364 B
Ruby
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
|