lib/openapi_parameters/query.rb in openapi_parameters-0.2.2 vs lib/openapi_parameters/query.rb in openapi_parameters-0.3.0

- old
+ new

@@ -32,13 +32,20 @@ attr_reader :parameters private + def convert_primitive(value, parameter) + return value unless @convert + return value if value == '' + + Converter.convert_primitive(value, parameter.schema) + end + def convert(value, parameter) return value unless @convert return value if value == '' - Converter.call(value, parameter.schema) + Converter.convert(value, parameter.schema) end end end