Skip to content

Parameter substitution needs to be limited #249

@HolQue

Description

@HolQue

Somewhere in the past it has been decided to allow the substitution of dollar operator expressions within strings only for parameters of data type 'str' and 'int' (not others like 'dict' and 'list' any more). And on both the left hand side of the colon and the right hand side of the colon.

The following combinations are blocked correctly (like expected):

"dictParam"    : {"A" : 0, "B" : 1},
"${dictParam}" : 1
"listParam"    : ["A", "B"],
"${listParam}" : 1

But the following combinations are not blocked. The substitution work, but should be blocked now also:

"dictParam"  : {"A" : 0, "B" : 1},
"param"      : "${dictParam}"
"listParam"  : ["A", "B"],
"param"      : "${listParam}"

How about float values:

"floatParam" : 1.2,
"param"      : "${floatParam}"
"floatParam"    : 1.2,
"${floatParam}" : 1

Currently substitution work. Keep working or block it?

Metadata

Metadata

Assignees

Projects

Status

Done

Milestone

Relationships

None yet

Development

No branches or pull requests

Issue actions