Skip to content

Conversation

@jrwbabylonlab
Copy link
Collaborator

@jrwbabylonlab jrwbabylonlab commented Aug 9, 2024

Started with version 0 as this would be the default version for old messages that not yet have such field.
i.e json.Unmarshal will treat the non-existent field as 0 value

@jrwbabylonlab jrwbabylonlab force-pushed the add-schema-version-control branch from b1387a9 to f561d31 Compare August 9, 2024 04:23
Copy link
Member

@gitferry gitferry left a comment

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

In general looks good to me. Can we add a test for backward compatibility?

@jrwbabylonlab jrwbabylonlab merged commit c05e7f6 into main Aug 9, 2024
@jrwbabylonlab jrwbabylonlab deleted the add-schema-version-control branch August 9, 2024 06:07
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.

3 participants