Our Partner & Developer boards on the community are moving to a brand new home: the .dev community forums! While you can still access past discussions here, for all your future app and storefront building questions, head over to the new forums.

Product options values array contains null

Product options values array contains null

elizabethy
Visitor
1 0 0

We recently received a products/update webhook from Shopify that included the following data.  The weird thing to note is that the second options object's values array only contains null.  Is that intended to be valid behavior?  What does it represent, conceptually?

{
   ...
  "variants": [
    {
      ...
      "option1": "Default Title",
      "option2": null,
      "option3": null,
      ...
    }
  ],
  "options": [
    {
      ...
      "name": "Color",
      "position": 1,
      "values": [
        "Default Title"
      ]
    },
    {
      ...
      "name": "Size",
      "position": 2,
      "values": [
        null
      ]
    }
  ],
  ...
}
Replies 0 (0)