You signed in with another tab or window. Reload to refresh your session.You signed out in another tab or window. Reload to refresh your session.You switched accounts on another tab or window. Reload to refresh your session.Dismiss alert
The documentation states that when retrieving the a cart /carts/{token} should return the variants with the variant code as the key of the array. This is not happening and the key is the index of the array.
The text was updated successfully, but these errors were encountered:
You are right. This is an error in the documentation. I would suggest changing the documentation as changing the behavior is not really an option.
The reason this was documented that way is because there are different ways to serialize a product in the ShopApi and one of them is doing it with an associative array. (\Sylius\ShopApiPlugin\Factory\Product\ListProductViewFactory)
Hey everyone,
The documentation states that when retrieving the a cart /carts/{token} should return the variants with the variant code as the key of the array. This is not happening and the key is the index of the array.
The text was updated successfully, but these errors were encountered: