Skip to content

Supporting multiple container schemas #21217

Answered by Abe27342
SampoSyrjanen asked this question in Q&A
Discussion options

You must be logged in to vote

I'd recommend explicitly putting a version field at a well-known location within your container which remains consistent across different types of container schemas. You could do this within SharedTree, SharedDirectory, SharedMap, etc.

On container creation, populate this field before attaching the container. On container load, you can determine which schema your container is using based on this field.

You can adopt this strategy in an ecosystem which hasn't used it already by interpreting absence of the version number as version 0 (or a number of unversioned schemas which you can distinguish between using other means).

Because of collaborative scenarios, this approach doesn't easily let …

Replies: 2 comments 1 reply

Comment options

You must be logged in to vote
1 reply
@SampoSyrjanen
Comment options

Comment options

You must be logged in to vote
0 replies
Answer selected by nmsimons
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Category
Q&A
Labels
None yet
3 participants