Shopify / shopify-api-ruby

ShopifyAPI is a lightweight gem for accessing the Shopify admin REST and GraphQL web services.
MIT License
1.05k stars 468 forks source link

Add support for updating REST attributes as blocks #1332

Closed paulomarg closed 1 month ago

paulomarg commented 1 month ago

Description

Fixes #1287

As pointed out in the issue, there are certain REST hash fields that need to be sent to the server as a whole, regardless of whether their keys are different or not.

To not break other resources, this is being added as an explicit configuration, so that we can enable it if there are other scenarios in which this happens.

How has this been tested?

Unit tests that simulate the actual requests.

Checklist: