# Functions
FixErrorParameters the error parameters come back from magento as objects rather than arrays of objects as their swagger docs specify EXPECTED: "parameters":[{"fieldName":"max","fieldValue":"300"}] ACTUAL: "parameters":{"max":300} CORRECTED: "parameters":[{"fieldName":"max","fieldValue":"300"}] however the.
FixJsonResponse one of the problems with the magento api is that it overloads the value:string fields with value:[]string and that breaks the json unmarshaller to fix this we use this function which intercepts the json string before it is json unmarshalled and alters the response flatten []string into a basic string EXPECTED: "value":"4" ACTUAL: "value":["4","5","6"] CORRECTED: "value":"4,5,6".