test-fullautomation / python-jsonpreprocessor

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

Error messages (24) #322

Open HolQue opened 3 weeks ago

HolQue commented 3 weeks ago

Previously this code

{
   "+"     : 1,
   "param" : ${+}
}

caused

'multiple repeat at position 60'

With latest changes of the JsonPreprocessor, results are available:

[DOTDICT] (2/1) > {+} [INT]  :  1
[DOTDICT] (2/2) > {param} [STR]  :  '${+}'

In case of the character '+' is allowed inside parameter names, I expect param to have integer value 1. Or it's a violation of naming conventions.

But to convert the expression ${+} unresolved to a string, is not ok.

HolQue commented 3 weeks ago

This works:

{
   "-"     : 2,
   "param" : ${-}
}

params has integer value 2.