strongloop-community / loopback-sdk-ios

iOS Client SDK for the LoopBack framework.
Other
76 stars 39 forks source link

modelWithDictionary replaces NSNull values with nil #135

Open igordeoliveirasa opened 6 years ago

igordeoliveirasa commented 6 years ago

Sometimes, Strongloop API returns dictionaries containing null at some keys value. Swift dictionary does not supports nil, that's why it converts to NSNull(). But, when modelWithDictionary was called, it was setting NSNull in some model properties.

slnode commented 6 years ago

Can one of the admins verify this patch? To accept patch and trigger a build add comment ".ok\W+to\W+test."

bajtos commented 6 years ago

@igordeoliveirasa thank you for the pull request. I am afraid we don't have bandwidth to review and land pull requests in this repository - see https://github.com/strongloop-community/loopback-sdk-ios/issues/136