Add MIOCoreDataSerialization, metadata-driven JSON for managed objects - #5
Open
alemohamad wants to merge 1 commit into
Open
Add MIOCoreDataSerialization, metadata-driven JSON for managed objects#5alemohamad wants to merge 1 commit into
alemohamad wants to merge 1 commit into
Conversation
This file contains hidden or bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Sign up for free
to join this conversation on GitHub.
Already have an account?
Sign in to comment
Add this suggestion to a batch that can be applied as a single commit.This suggestion is invalid because no changes were made to the code.Suggestions cannot be applied while the pull request is closed.Suggestions cannot be applied while viewing a subset of changes.Only one suggestion per line can be applied in a batch.Add this suggestion to a batch that can be applied as a single commit.Applying suggestions on deleted lines is not supported.You must change the existing code in this line in order to create a valid suggestion.Outdated suggestions cannot be applied.This suggestion has been applied or marked resolved.Suggestions cannot be applied from pending reviews.Suggestions cannot be applied on multi-line comments.Suggestions cannot be applied while the pull request is queued to merge.Suggestion cannot be applied right now. Please check back later.
Managed object to JSON and back, driven by the entity description.
In production projects this work is written by hand. This module is model-driven, so it can be shared between projects. Conventions the model cannot decide (identity attribute, UUID casing, date and decimal format, nulls) are passed in via
MCSerializationPolicy.It's a separate module, so
MIOCoreDatastays API-identical to Apple's Core Data and you opt in with an import.Also fixes
NSManagedObjectModelParser, which had no case forBinaryorURIeven thoughNSAttributeTypedefines both. A fixture model using them came back nil, which is how it surfaced.