2021-01-03 14:25:43 +05:30
|
|
|
# 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
|
2022-07-16 23:28:13 +05:30
|
|
|
expose :includes
|
2021-12-11 22:18:48 +05:30
|
|
|
expose :jobs, if: -> (result, options) { options[:include_jobs] }
|
2021-01-03 14:25:43 +05:30
|
|
|
end
|
|
|
|
end
|
|
|
|
end
|
|
|
|
end
|
|
|
|
end
|