lib/grape/dsl/inside_route.rb in grape-1.5.0 vs lib/grape/dsl/inside_route.rb in grape-1.5.1

- old
+ new

@@ -92,10 +92,10 @@ type = route_options_params.dig(key, :type) has_children = route_options_params.keys.any? { |k| k != key && k.start_with?(key) } if type == 'Hash' && !has_children {} - elsif type == 'Array' || type&.start_with?('[') + elsif type == 'Array' || type&.start_with?('[') && !type&.include?(',') [] elsif type == 'Set' || type&.start_with?('#<Set') Set.new else yield