gitlab-org--gitlab-foss/app/serializers/codequality_reports_comparer_entity.rb

15 lines
437 B
Ruby

# frozen_string_literal: true
class CodequalityReportsComparerEntity < Grape::Entity
expose :status
expose :new_errors, using: CodequalityDegradationEntity
expose :resolved_errors, using: CodequalityDegradationEntity
expose :existing_errors, using: CodequalityDegradationEntity
expose :summary do
expose :total_count, as: :total
expose :resolved_count, as: :resolved
expose :errors_count, as: :errored
end
end