-
Notifications
You must be signed in to change notification settings - Fork 9.4k
GETing products REST API unconsistent extension_attributes results #5081
New issue
Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.
By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.
Already on GitHub? Sign in to your account
Comments
Hi @jpdata this is a feature request. Current behavior of Magento relies on an extensible object to be plugged into a method. We plug in the extensible objects for the detailed single object calls. For GetList we do not do this as there would be a significant performance issue (system would have to loop through each object and call every extensible object for the current framework resulting in a large # of database calls). |
I'm developing an app in C# and i'm trying to deserialize Json objets returned to a class generic as I could build it, but it fails since the deserialization utility i'm using (Json.NET) expects and array but there is a single objetct instead. Now I need to find a work around. :-P Thank you very much. |
Assigning to Mark to discussion with team. |
Thank you for your submission. The Magento 2 GitHub repository is used to capture code and documentation issues. New feature requests and existing feature improvements should be submitted to the Magento 2 Feature Requests and Improvements forum. This discussion is now available at Magento Forums. |
[arcticfoxes] B2B-284 : Stabilize community PR for Order Search
Uh oh!
There was an error while loading. Please reload this page.
Steps to reproduce
Expected result
.
Actual result
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}]
The text was updated successfully, but these errors were encountered: