Skip to content

[ 2374910 ] Slicing not detected #411

@HolQue

Description

@HolQue

With the following expression the value of a sub key shall be changed. But by mistake the expression contains a negative index:

${params}[-1]['B'][0]['C'] : 130

The result is a parameter with name

${params}[-1]['B'][0]['C']

and value 130.

But expected is error message: Slicing not supported.

Critical line needs to be placed inside "params":

    "params" : [
                  11,
                  {"A" : 12,
                   "B" : [
                            {
                               "C" : 13,
                               ${params}[-1]['B'][0]['C'] : 130,

Slicing is detected properly in case of the critical line is placed outside "params".

Similar to: #412

Metadata

Metadata

Assignees

Projects

No projects

Milestone

No milestone

Relationships

None yet

Development

No branches or pull requests

Issue actions