Skip to content

[ 2588749 ] Error messages (57) #453

@HolQue

Description

@HolQue

(1)

The latest changes in JsonPreprocessor ('Improved invalid key name detection') have an impact on a certain error message.

JSONP

{
   "indexP" : 0,
   "keyP"   : "A",
   "dictP"  : {"A" : 0, "B" : 1},
   "listP"  : ["A", "B"],

   "params" : {${indexP} : "002",
               "003" : ["004", {"005" : "006",
                              "007" : ["008", ["009", "010"]],
                              "011" : ["012", {"013" : "014"}],
                              "015" : {"016" : ["017", "018"]},
                              "019" : {"020" : {"021" : "022"}}
                             }
                       ]
              }
}

Previous error message:

'A key with name '${indexP}' does not exist at this position. Use the '<name> : <value>' syntax to create a new key.'

New error message:

'Invalid key name: '{${indexP}'.'

It is not detected any more that the key is part of a dictionary. Therefore the first opening curly bracket is not part of the name. In this case the first error message is the better one in my opinion.

(2)

'The curly brackets are mismatch' has been changed to 'The curly brackets do not match'. In my opinion this is much better. But still the old style is implemented too ('The brackets mismatch'). This should be aligned.

Metadata

Metadata

Assignees

Projects

Status

Open

Milestone

Relationships

None yet

Development

No branches or pull requests

Issue actions