Im trying to send a response without certain fields, and RestKit still keeps setting the values to nil even after i have disabled this option using:
infoMapping.assignsDefaultValueForMissingAttributes = NO;
Full mapping code:
RKEntityMapping *infoMapping = [RKEntityMapping mappingForEntityForName:@"IndexInfo" inManagedObjectStore:managedObjectStore];
//userMapping.identificationAttributes = @[@"id"];
[infoMapping addAttributeMappingsFromDictionary:@{
@"first" : @"first",
@"last" : @"last"
}];
infoMapping.assignsDefaultValueForMissingAttributes = NO;
RKResponseDescriptor *infoResponseDescriptor =
[RKResponseDescriptor responseDescriptorWithMapping:infoMapping
method:RKRequestMethodGET
pathPattern:@"/core/feed.json"
keyPath:@"info"
statusCodes:RKStatusCodeIndexSetForClass(RKStatusCodeClassSuccessful)
I really need to be able to respond with partial data, if this is a bug is there another way around it to hook the mapping to disable it manually?