This PR changes the BSON representation of CoreDocumentSynchronization.Config so that uncommitted change events are stored as a BSON binary. This is because the update description in the sync config can have .'s in the field, which is not permitted by the drivers. This is the solution we use on Android currently.
No new tests are added, as this functionality was tested by the previously failing testUpdateUsingUpdateDescription test, and existing unit tests for the core doc sync config.
Drive-bys:
made the core doc sync config store fields as snake case
added a persisted schema_version field to the doc sync config that we verify on decode
This PR changes the BSON representation of
CoreDocumentSynchronization.Config
so that uncommitted change events are stored as a BSON binary. This is because the update description in the sync config can have.
's in the field, which is not permitted by the drivers. This is the solution we use on Android currently.No new tests are added, as this functionality was tested by the previously failing
testUpdateUsingUpdateDescription
test, and existing unit tests for the core doc sync config.Drive-bys:
Sync
methods public instead of internal