Skip to content

Conversation

tmadlener
Copy link
Collaborator

@tmadlener tmadlener commented Aug 26, 2025

BEGINRELEASENOTES

  • Thank you for writing the text to appear in the release notes. It will show up
    exactly as it appears between the two bold lines
  • ...

ENDRELEASENOTES

Fixes #796

This PR adds the possibility to pass multiple old datamodel versions to the datmodel generator and adds tests using two old versions. With these changes it should now be possible to pass an arbitrary number of old schemas to the code generator and validate that each evolution from the old version to the current version is possible (otherwise there will be no code generation).

To achieve this the grammar for the evolution files had to be changed to accommodate for the possibility of describing all possible schema jumps in one evolution file.

Compared to #817 the cmake functionality was slightly adapted to accept multiple old datamodel versions and to allow to write to multiple (i.e. exactly two) old versions and reading those files back from one source file.

  • Release notes

@tmadlener tmadlener force-pushed the multi-schema-version-generation branch from 949b608 to ccebdb3 Compare August 27, 2025 08:50
@tmadlener tmadlener force-pushed the multi-schema-version-generation branch 2 times, most recently from d9fddfd to 2b313d9 Compare September 3, 2025 11:35
@tmadlener tmadlener force-pushed the multi-schema-version-generation branch 3 times, most recently from d342f82 to a03dd57 Compare September 4, 2025 11:52
@tmadlener tmadlener force-pushed the multi-schema-version-generation branch from a03dd57 to 1d59a82 Compare September 12, 2025 14:10
@tmadlener tmadlener force-pushed the multi-schema-version-generation branch from 1d59a82 to cd9c933 Compare September 12, 2025 15:37
@tmadlener tmadlener force-pushed the multi-schema-version-generation branch from cd9c933 to a968814 Compare October 6, 2025 10:06
@tmadlener tmadlener force-pushed the multi-schema-version-generation branch from a968814 to bebc7e8 Compare October 6, 2025 11:17
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.

Code generation should be able to handle several older schema versions not just one

1 participant