mirror of
https://github.com/zhigang1992/RestKit.git
synced 2026-04-24 04:46:01 +08:00
Add assertions for required parameters to request and response descriptors
This commit is contained in:
@@ -66,6 +66,8 @@ static NSString * RKStringFromIndexSet(NSIndexSet *indexSet) {
|
||||
keyPath:(NSString *)keyPath
|
||||
statusCodes:(NSIndexSet *)statusCodes
|
||||
{
|
||||
NSParameterAssert(mapping);
|
||||
|
||||
RKResponseDescriptor *mappingDescriptor = [self new];
|
||||
mappingDescriptor.mapping = mapping;
|
||||
mappingDescriptor.pathPattern = pathPattern;
|
||||
|
||||
Reference in New Issue
Block a user