test-fullautomation / python-jsonpreprocessor

A preprocessor for json files
Apache License 2.0
2 stars 2 forks source link

Invalid error message (2) #156

Closed HolQue closed 7 months ago

HolQue commented 9 months ago

[1]

The JSON code

"testlist" : [1,2,3],
"value"    : ${testlist}[]

causes

'Invalid nested parameter format: ${testlist}[]'

I would prefer to have the "nested" removed (like already done in other error messages). Because the invalid expression does not contain nested parameters.

[2]

The JSON code

"testlist" : [1,2,3],
"value"    : ${testlist}[${}]

causes

'Invalid nested parameter format: ${testlist}[${}] - The double quotes are missing!!!'

Yes, also this expression is invalid (because of the empty curly brackets). But the extension ("The double quotes are missing") should be removed. Because this issue has nothing to do with missing quotes.

namsonx commented 7 months ago

Hello Holger,

I pushed new commit 96e6e18d6b to stabi branch for this ticket.

Thank you, Son

HolQue commented 7 months ago

Retest successful. Issue can be closed.