Skip to content

Commit

Permalink
Fix logic for mapping Hash and Array objects to refs
Browse files Browse the repository at this point in the history
  • Loading branch information
Andrew Schuster committed Jun 10, 2016
1 parent 6ef800c commit 10a3b65
Showing 1 changed file with 1 addition and 1 deletion.
2 changes: 1 addition & 1 deletion lib/grape-swagger/endpoint.rb
Original file line number Diff line number Diff line change
Expand Up @@ -231,7 +231,7 @@ def parse_request_params(required)
else
key = param.first
end
memo[key] = param.last unless param.last[:type] == 'Hash' || param.last[:type] == 'Array' && !param.last.key?(:documentation)
memo[key] = param.last unless (param.last[:type] == 'Hash' || param.last[:type] == 'Array') && !param.last.key?(:documentation)
end
end

Expand Down

0 comments on commit 10a3b65

Please sign in to comment.