lib/openapi_parameters/query.rb in openapi_parameters-0.3.2 vs lib/openapi_parameters/query.rb in openapi_parameters-0.3.3

- old
+ new

@@ -14,10 +14,10 @@ def unpack(query_string) # rubocop:disable Metrics/AbcSize parsed_query = Rack::Utils.parse_query(query_string) parameters.each_with_object({}) do |parameter, result| parameter = Parameter.new(parameter) - if parameter.style == 'deepObject' + if parameter.deep_object? parsed_nested_query = Rack::Utils.parse_nested_query(query_string) next unless parsed_nested_query.key?(parameter.name) result[parameter.name] = convert(parsed_nested_query[parameter.name], parameter) else