Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

Missing option to define a template version #68

Open
AlexanderSkrock opened this issue Oct 19, 2023 · 2 comments
Open

Missing option to define a template version #68

AlexanderSkrock opened this issue Oct 19, 2023 · 2 comments

Comments

@AlexanderSkrock
Copy link

Currently, during generation it is not possible to set a specific version for the element templates. I could imagine a new property for the Template annotation called version and skip if it is missing.

What do you think on this? If possible, I would like to contribute on this.

Kind regards
Alexander Skrock

@sascha-hanss-76
Copy link
Collaborator

sascha-hanss-76 commented Oct 20, 2023

Hi Alexander,

the plan here was to set the version of the generated templates by the "schemaVersion" property in the Maven plugin. So you have only one location where you have to set the version which is used to validate the generated element templates and not to adjust each "Template" annotation in the code.

Regards,
Sascha

@AlexanderSkrock
Copy link
Author

This approach requires that there is no version change except when you update the schema version.

Personally, I thought best would be to generate a new version whenever a template is released in case it was modified in this release cycle.

Kind regards
Alexander

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

No branches or pull requests

2 participants