You signed in with another tab or window. Reload to refresh your session.You signed out in another tab or window. Reload to refresh your session.You switched accounts on another tab or window. Reload to refresh your session.Dismiss alert
Interesting: In (2)"D" has been replaced by the dollar operator expression, instead of "E". And the error message is different. Here it's the second key in the dictionary. In (2) it's the first key. Position dependency?
For the cases (1), (2), and (5), these cases will raised the exception Exception: A substitution in key names is not allowed!... based on requirement #270
For other cases you mentioned in this ticket, I already implemented and all cases are working as expected. Could you please help me verify them on stabi branch.
The following code contains nested dictionaries and lists:
Based on this pattern I replace step by step single elements by a parameter.
(1)
Result:
{'param1': 'X', 'params': {'A': 1, 'X': ['C', {'D': 2, 'E': ['F', 3]}]}}
OK so far. But the key
'X'
is a key created by a parameter. Do we want to allow this here?(2)
Result:
Parsing went wrong.
(3)
Result:
Parsing went wrong.
(4)
Result:
String conversion failed
(5)
Result:
Interesting: In (2)
"D"
has been replaced by the dollar operator expression, instead of"E"
. And the error message is different. Here it's the second key in the dictionary. In (2) it's the first key. Position dependency?(6)
Result:
{'param1': 'X', 'params': {'A': 1, 'B': ['C', {'D': 2, 'E': ['${param1}', 3]}]}}
Parsing went wrong.
(7)
Result:
String conversion failed
(8)
Result:
Error: 'Invalid nested parameter format: ${param1}]}] - The double quotes are missing!!!'!
Why this? There are no quotes missing.
(9)
Result:
Parsing went wrong.
(10)
Extended substitution:
Result:
Error: 'The variable '${param3}[0]]' is not available!'!
JsonPreprocessor is not able to handle the two successive '
]]
' in '${param2}[${param3}[0]]
'.(11)
With additional single quotes, to avoid ']]' and to force the explicit string conversion:
Result:
Error: 'list index out of range'!
Why is that? There is no list index out of range.
(12)
In dotdict notation:
Result:
Parsing went wrong.
The text was updated successfully, but these errors were encountered: