Skip to content

Contains Stmt #56

@marcauberer

Description

@marcauberer

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 >, <, >=, <=.

Metadata

Metadata

Assignees

Labels

cpp-compilerIssues regarding the C++ compilerenhancementNew feature or requestfeature-requestIdea or feature requestjava-compilerIssues regarding the Java compiler

Type

No type

Projects

No projects

Milestone

No milestone

Relationships

None yet

Development

No branches or pull requests

Issue actions