# frozen_string_literal: true

module Types
  class VulnerabilityReportTypeEnum < BaseEnum
    graphql_name 'VulnerabilityReportType'
    description 'The type of the security scan that found the vulnerability'

    ::Vulnerabilities::Finding::REPORT_TYPES.keys.each do |report_type|
      value report_type.to_s.upcase, value: report_type.to_s
    end
  end
end
