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

fix(generator): boolean conditions in template generator annotations #3570

Open
wants to merge 1 commit into
base: main
Choose a base branch
from

Conversation

chillleader
Copy link
Member

Description

This PR will add the missing property in the template generator annotations to create a condition that references a boolean property.

This possibility already exists on the lower level in the classes that are mapped to element template JSON, but it has been missing in the annotation.

An enum is used because we need to have a null/missing value, as the annotation can lead to different behavior of the generator based on which property is set.

Checklist

  • PR has a milestone or the no milestone label.

@chillleader chillleader self-assigned this Nov 1, 2024
@chillleader chillleader requested a review from a team as a code owner November 1, 2024 10:52
@chillleader chillleader changed the title fix: boolean conditions in template generator annotations fix(generator): boolean conditions in template generator annotations Nov 1, 2024
@DenovVasil
Copy link
Contributor

@chillleader Tested it, works great. Thank you very much, this update helped me a lot 🙂

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Projects
None yet
Development

Successfully merging this pull request may close these issues.

2 participants