class Grape::Validations::Validators::CoerceValidator
def initialize(attrs, options, required, scope, opts)
def initialize(attrs, options, required, scope, opts) super @converter = if type.is_a?(Grape::Validations::Types::VariantCollectionCoercer) type else Types.build_coercer(type, method: @option[:method]) end end