This website requires JavaScript.
Explore
Help
Register
Sign In
kylefang
/
RestKit
Watch
1
Star
0
Fork
0
You've already forked RestKit
mirror of
https://github.com/zhigang1992/RestKit.git
synced
2026-05-08 18:02:43 +08:00
Code
Issues
Packages
Projects
Releases
Wiki
Activity
Files
80366afa84c48b2eb908eaef0767943dbef2579d
RestKit
/
Specs
/
ObjectMapping
History
Blake Watters
80366afa84
Added Object Mapping block helpers to RKObjectManager and RKObjectMapping. These enable you to perform ad-hoc object mapping very easily. Extended RKObjectRouter to match on superclasses if no specific route is found. This is helpful when using mocked objects with frameworks like Kiwi.
fixes
#238
2011-07-23 23:04:16 -04:00
..
RKObjectLoaderSpec.m
Reworked object mapping behaviors to better accommodate situations where the server side responds with a successful status code and a payload that does not contain any mappable attributes or relationships. We now consider this to be successful. If a mapping operation is performed that does not result in any mappings being applied, it will return NO without setting an error. If an instance of RKObjectMapper is invoked that does not find any mappable content in the payload, this will result in an unmappable content error. The object loader guards against this by not attempting to map any empty payloads. This should ensure that you only get the unmappable content error if you have asked RK to load and map a payload it cannot find an object mapping for.
2011-07-07 09:53:46 -04:00
RKObjectManagerSpec.m
Added specs for zero-length Content-Length header when params is nil or empty
2011-07-20 22:56:22 -04:00
RKObjectMapperSpec.m
Updates to make parsedBody: implementation ready for merge. Migrated all remaining specs to RKSpec so failures don't cause crashes when you use the Hamcrest helpers.
closes
#153
2011-06-15 10:47:45 -04:00
RKObjectMappingNextGenSpec.m
Reworked object mapping behaviors to better accommodate situations where the server side responds with a successful status code and a payload that does not contain any mappable attributes or relationships. We now consider this to be successful. If a mapping operation is performed that does not result in any mappings being applied, it will return NO without setting an error. If an instance of RKObjectMapper is invoked that does not find any mappable content in the payload, this will result in an unmappable content error. The object loader guards against this by not attempting to map any empty payloads. This should ensure that you only get the unmappable content error if you have asked RK to load and map a payload it cannot find an object mapping for.
2011-07-07 09:53:46 -04:00
RKObjectMappingOperationSpec.m
Added specs and support for either failing out the mapping operation or skipping over an attribute depending on key/value validation response. If NO is returned and a validation error is returned, the mapping operation will fail. If NO is returned without an error, the attribute will be skipped and a warning will be logged. You can also mutate the values.
closes
#166
2011-06-29 15:07:43 -04:00
RKObjectMappingResultSpec.m
Unwind nil behavior introduced in previous commit and add test coverage for asObject behaviors.
2011-07-05 17:22:27 -04:00
RKObjectRouterSpec.m
Added Object Mapping block helpers to RKObjectManager and RKObjectMapping. These enable you to perform ad-hoc object mapping very easily. Extended RKObjectRouter to match on superclasses if no specific route is found. This is helpful when using mocked objects with frameworks like Kiwi.
fixes
#238
2011-07-23 23:04:16 -04:00
RKObjectSerializerSpec.m
Reworked object mapping behaviors to better accommodate situations where the server side responds with a successful status code and a payload that does not contain any mappable attributes or relationships. We now consider this to be successful. If a mapping operation is performed that does not result in any mappings being applied, it will return NO without setting an error. If an instance of RKObjectMapper is invoked that does not find any mappable content in the payload, this will result in an unmappable content error. The object loader guards against this by not attempting to map any empty payloads. This should ensure that you only get the unmappable content error if you have asked RK to load and map a payload it cannot find an object mapping for.
2011-07-07 09:53:46 -04:00
RKParserRegistrySpec.m
Implementation of Object Mapping 2.0 design:
2011-06-11 19:26:56 -04:00