# frozen_string_literal: true

module Types
  class VulnerabilitySeverityEnum < BaseEnum
    graphql_name 'VulnerabilitySeverity'
    description 'The severity of the vulnerability'

    ::Vulnerabilities::Finding::SEVERITY_LEVELS.keys.each do |severity|
      value severity.to_s.upcase, value: severity.to_s
    end
  end
end
