Model Serialization Fixed
|Release Date||Jul 28, 2017|
There was a bug in the AngularJS SDK in sending complex types (models) as Form and Body Parameters.
In cases of endpoints which accept model instances as form/body parameters, models were not being serialized properly before making the endpoint call. This resulted in camel-cased field values being passed, disregarding the correct API names.
This behavior has now been fixed. Please generate your SDK again to get the fix.
Details Of Changes
- Now in case of endpoints which accept models as form/body parameters, the model’s toJSON function is explicitly called before attaching it into the form/body. This enables the real field names (as defined in the API) to be sent in the request
BaseModelfile has been updated to return the correct serialized model object
Have questions? Submit a request.