test-fullautomation / python-jsonpreprocessor

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

Error messages (40) #377

Closed HolQue closed 1 week ago

HolQue commented 3 weeks ago

The following JSON snippet contains a syntax error: A closing curly bracket is missing.

"file_name" : "test",
"[import]" : "./dynamic_imports/${file_name.jsonp"

Result:

Invalid expression found: '... /dynamic_imports/${file_name.jsonp' - The double quotes are missing!

That's wrong. Expected is a syntax error about a missing curly bracket.

Cross check:

"param" : "${dictParam"

Result: Error detected properly

Invalid syntax! One or more than one closed curly bracket is missing in expression '${dictParam'.

But if I add content inside the quotes:

"param" : "./${dictParam"

again the error message is wrong:

Invalid expression found: './${dictParam' - The double quotes are missing!!!

HolQue commented 2 weeks ago

JPP_1156

HolQue commented 1 week ago

Error message changed to:

Could not load the import file './dynamic_imports/${AA/imported.AA.jsonp'. The parameter '' is not available!

But every '${' requires a corresponding '}'. This is not detected.

namsonx commented 1 week ago

Hello Holger,

This ticket was solved on stabi branch.

Thank you, Son

HolQue commented 1 week ago

Retest successful. Issue can be closed.

test-fullautomation commented 1 week ago

merged for version 0.13.1