# frozen_string_literal: true

class VulnerabilitySummaryEntity < Grape::Entity
  Vulnerabilities::Occurrence::SEVERITY_LEVELS.each do |severity_name, severity|
    expose severity_name do |param|
      object[severity] || 0
    end
  end
end
