-
Notifications
You must be signed in to change notification settings - Fork 2
Closed
Description
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.