mirror of
https://github.com/zhigang1992/RestKit.git
synced 2026-04-28 12:45:33 +08:00
Add support and test coverage for serializing Boolean properties to JSON as true/false instead of numbers. closes #920, #827
This commit is contained in:
Binary file not shown.
Binary file not shown.
@@ -50,6 +50,7 @@
|
||||
|
||||
@property (nonatomic, strong) NSSet *friends;
|
||||
@property (nonatomic, strong) NSOrderedSet *friendsInTheOrderWeMet;
|
||||
@property (nonatomic, strong) NSNumber *isHappy;
|
||||
|
||||
@end
|
||||
|
||||
|
||||
@@ -38,6 +38,7 @@
|
||||
@dynamic cats;
|
||||
@dynamic catIDs;
|
||||
@dynamic catsInOrderByAge;
|
||||
@dynamic isHappy;
|
||||
|
||||
@dynamic house;
|
||||
@dynamic landlord;
|
||||
|
||||
@@ -21,14 +21,7 @@
|
||||
#import <Foundation/Foundation.h>
|
||||
#import "RKMappableAssociation.h"
|
||||
|
||||
@interface RKMappableObject : NSObject {
|
||||
NSDate *_dateTest;
|
||||
NSNumber *_numberTest;
|
||||
NSString *_stringTest;
|
||||
NSURL *_urlTest;
|
||||
RKMappableAssociation *_hasOne;
|
||||
NSSet *_hasMany;
|
||||
}
|
||||
@interface RKMappableObject : NSObject
|
||||
|
||||
@property (nonatomic, strong) NSDate *dateTest;
|
||||
@property (nonatomic, strong) NSNumber *numberTest;
|
||||
@@ -36,5 +29,6 @@
|
||||
@property (nonatomic, strong) NSURL *urlTest;
|
||||
@property (nonatomic, strong) RKMappableAssociation *hasOne;
|
||||
@property (nonatomic, strong) NSSet *hasMany;
|
||||
@property (nonatomic, assign) BOOL isValid;
|
||||
|
||||
@end
|
||||
|
||||
Reference in New Issue
Block a user