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

Contains Stmt #56

Open
marcauberer opened this issue Jun 25, 2021 Discussed in #37 · 1 comment · Fixed by #41
Open

Contains Stmt #56

marcauberer opened this issue Jun 25, 2021 Discussed in #37 · 1 comment · Fixed by #41
Assignees
Labels
cpp-compiler Issues regarding the C++ compiler enhancement New feature or request feature-request Idea or feature request java-compiler Issues regarding the Java compiler

Comments

@marcauberer
Copy link
Member

Discussed in #37

Originally posted by marcauberer June 1, 2021
Compose Generator needs a feature which can search in an input data array after an element, that contains attribute <x> to have value <y>.

I had the idea to introduce a new statement type. Here is an example for the suggestion:
service.frontend contains name == "spring-maven"
or
vars contains number >= 5

As you see, this would give us the possiblity to not only check if attribute <x> is equal to value <y>, furthermore we can also check if an array contains any element with attribute <x>, having a value not equal to <y>. Or we could use more comparison operators like >, <, >=, <=.

@marcauberer marcauberer added enhancement New feature or request feature-request Idea or feature request labels Jun 25, 2021
@marcauberer marcauberer linked a pull request Jun 25, 2021 that will close this issue
@marcauberer
Copy link
Member Author

Implemented in the C++ compiler, so I am un-assigning myself

@marcauberer marcauberer removed their assignment Jul 5, 2021
@marcauberer marcauberer added java-compiler Issues regarding the Java compiler cpp-compiler Issues regarding the C++ compiler labels Nov 1, 2021
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
cpp-compiler Issues regarding the C++ compiler enhancement New feature or request feature-request Idea or feature request java-compiler Issues regarding the Java compiler
Projects
None yet
Development

Successfully merging a pull request may close this issue.

2 participants