sendgrid / ruby-http-client

SendGrid's Ruby HTTP Client for calling APIs
https://sendgrid.com
MIT License
23 stars 54 forks source link

Breaking Change in build_request? #119

Closed DanielWright closed 4 years ago

DanielWright commented 4 years ago

Issue Summary

Prior to #95 being merged, we had code like the following that worked:

sendgrid.patch(request_body: an_array)

This worked because an_array would, along the way to Net::HTTP, be encoded to JSON. #95 changed this behavior, as now only hashes are automatically JSON-encoded.

Was this change in behavior intentional, or was our usage unexpected?

childish-sambino commented 4 years ago

Duplicates #117