You signed in with another tab or window. Reload to refresh your session.You signed out in another tab or window. Reload to refresh your session.You switched accounts on another tab or window. Reload to refresh your session.Dismiss alert
After reading extensively through the apple docs, I'll have to migrate from exceptions to using nserror. Pity - exceptions looked as the perfect way to handle nested models import errors.
The text was updated successfully, but these errors were encountered:
all init methods take in a JSONModelError parameter.
the init methods still throw exceptions - in the case the model has a property with no defined transformer -> programmer mistake, therefore an exception
added methods for checking initWithData
Just copied from SimpleDataErrorTests and replaced
stringWithContentsOfFile with dataWithContentsOfFile and init with data
accordingly
Added methods
jsonmodel#1. testErrorsInNestedModelsDictionary
jsonmodel#2. testErrorsInNestedModelsArray
jsonmodel#3. testMissingKeysError
jsonmodel#4. testTypeMismatchErrorImages
jsonmodel#5. testTypeMismatchErrorImagesObject
After reading extensively through the apple docs, I'll have to migrate from exceptions to using nserror. Pity - exceptions looked as the perfect way to handle nested models import errors.
The text was updated successfully, but these errors were encountered: