test-fullautomation / python-jsonpreprocessor

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

Error messages (36) #344

Open HolQue opened 1 month ago

HolQue commented 1 month ago

JSON: "ABC__SlicingIndex__DEF" : 1

Outcome: Error: 'The JSONP content contains a reserved token '__SlicingIndex__'. It cannot contain any of reserved tokens: JPavoidDataType_, __handleColonsInLine__, __handleNestedParamInLine__, __handleDuplicatedKey__00, __handleDuplicatedKey__, __ConvertParameterToString__, __IndexOfList__, __SlicingIndex__, __StringValueMake-up__.'!

Please shorten this error message, it's too long winded.

Recommendation: Reserved keyword '__SlicingIndex__' found, but is not allowed to be used. Please remove.

The use-case is very rare. There is no need to spend more effort for the error message.

namsonx commented 2 weeks ago

Hello Holger,

I updated the error message in this case: Exception: The JSONP content contains a reserved token '__SlicingIndex__'

Thank you, Son