test-fullautomation / python-jsonpreprocessor

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

Invalid nested parameter format (6) #137

Closed HolQue closed 12 months ago

HolQue commented 1 year ago

The JSON code (JPP_0505)

{
   "param1" : "value :,: 1",
   "param2" : "value :,: 2",
   //
   "val1"   : "The values are: '${param1}' and: '${param2}', and so on",
   "val2"   : ${val1},
   "val3"   : ":'${val1}'::,::'${val2}':"
}

causes the following error message:

'Invalid nested parameter format: '${param1}' and'

At first: The error message seems to be incomplete.

At second: The format is not invalid. The goal of this test case is to check, if JSON syntax elements like colon and comma inside strings have any negative impact.

Expected is: no impact. Colon and comma should be allowed in strings.

namsonx commented 1 year ago

Hello Holger,

Thank you for your finding! I will evaluate and handle the case containing colon and comma inside string value.

Thank you, Son

HolQue commented 1 year ago

Retest with

https://github.com/test-fullautomation/python-jsonpreprocessor/pull/151

successful. Ticket can be closed.