Skip to content

Add MIOCoreDataSerialization, metadata-driven JSON for managed objects - #5

Open
alemohamad wants to merge 1 commit into
miolabs:masterfrom
alemohamad:feature/serialization
Open

Add MIOCoreDataSerialization, metadata-driven JSON for managed objects#5
alemohamad wants to merge 1 commit into
miolabs:masterfrom
alemohamad:feature/serialization

Conversation

@alemohamad

Copy link
Copy Markdown

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 MIOCoreData stays API-identical to Apple's Core Data and you opt in with an import.

Also fixes NSManagedObjectModelParser, which had no case for Binary or URI even though NSAttributeType defines both. A fixture model using them came back nil, which is how it surfaced.

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment

Labels

None yet

Projects

None yet

Development

Successfully merging this pull request may close these issues.

1 participant