JSON Errors Format Change

15 views
Skip to first unread message

Denis Odorcic

unread,
Sep 21, 2011, 1:42:16 PM9/21/11
to Shopify API Announcements
Currently, when making JSON API calls, the JSON response on an object
being created with errors returns them without a root key of 'errors'.
We will be changing this format to include the 'errors' root.

Moving from:
{"title":["can't be blank"]}

To:
{"errors":{"title":["can't be blank"]}}

We will also be updating the Shopify API gem to properly handle this
change so that the ActiveResource objects can correctly access the
errors.

These changes are expected to be made on or after September 26th,
2011, and we'll send an update when its been pushed.
Reply all
Reply to author
Forward
0 new messages