Feature request from jpdata, posted on GitHub Jun 17, 2016
Steps to reproduce
- Install Magento 2.0.7 with Sample Data
- Get all products with REST API for example GET /rest/V1/products?searchCriteria=
Expected result
- All products and every pruct with a produc_links array and every product_link with a extension_attributes array
.
Actual result
- All products and every pruct with a produc_links array and every product_link with a extension_attributes but for some products it returns an array even empty [] for others with one element does return the single element (not in an array). It should return an array allways, regarding the number of elements returned.
Some time it returns:
"extension_attributes":[]
some times returns:
"extension_attributes":{"qty":0}
As I said it should allways return an array:
"extension_attributes":[{"qty":0}]