Skip to content

Commit 8ef7f85

Browse files
committed
Merge pull request jsonmodel#286 from dbachrach/required_properties_bug
Fix bug in modifying the shared requiredPropertyNames of a JSONModel
2 parents e7aaa38 + 9184a33 commit 8ef7f85

1 file changed

Lines changed: 1 addition & 1 deletion

File tree

‎JSONModel/JSONModel/JSONModel.m‎

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -211,7 +211,7 @@ -(BOOL)__doesDictionary:(NSDictionary*)dict matchModelWithKeyMapper:(JSONKeyMapp
211211
{
212212
//check if all required properties are present
213213
NSArray* incomingKeysArray = [dict allKeys];
214-
NSMutableSet* requiredProperties = [self __requiredPropertyNames];
214+
NSMutableSet* requiredProperties = [self __requiredPropertyNames].mutableCopy;
215215
NSSet* incomingKeys = [NSSet setWithArray: incomingKeysArray];
216216

217217
//transform the key names, if neccessary

0 commit comments

Comments
 (0)