Skip to content

Expression with not existing parameter not resolved #252

@HolQue

Description

@HolQue

In following three code examples the not existing parameter is detected properly:

"listP"  : ["A", "B"],
"params" : ${listP}[${IAMNOTEXISTING}]
"listP"  : ["A", "B"],
"params" : [${listP}[${IAMNOTEXISTING}], "ABC"]
"listP"  : ["A", "B"],
"params" : {"ABC" : [${listP}[${IAMNOTEXISTING}], "DEF"]}

Result:

Error: 'The variable '${IAMNOTEXISTING}' is not available!'!

But after adding another level of nested brackets:

"listP"  : ["A", "B"],
"params" : [{"ABC" : [${listP}[${IAMNOTEXISTING}], "DEF"]}, "GHI"]

the result is:

{'listP': ['A', 'B'],
 'params': [{'ABC': ['${listP}[${IAMNOTEXISTING}]', 'DEF']}, 'GHI']}

It is not detected any more that a parameter does not exist, and the entire dollar operator expression ${listP}[${IAMNOTEXISTING}] is inserted as string into the list.

But expected is the same error message than above.

Metadata

Metadata

Assignees

Projects

No projects

Milestone

No milestone

Relationships

None yet

Development

No branches or pull requests

Issue actions