# frozen_string_literal: true

module Types
  class VulnerabilityStateEnum < BaseEnum
    graphql_name 'VulnerabilityState'
    description 'The state of the vulnerability.'

    ::Vulnerability.states.keys.each do |state|
      value state.to_s.upcase, value: state.to_s
    end
  end
end
