test-fullautomation / python-jsonpreprocessor

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

Error message (7) #237

Open HolQue opened 2 months ago

HolQue commented 2 months ago

The implicit creation of data structures based on nested parameter is not supported.

If someone try to do this, he gets the following error:

'The implicit creation of data structures based on nested parameter is not supported. New parameter 'testdict['B']['C']' could not be created by the expression '${testdict.B}['${name}']''

This can be shortened. The statement "could not be created" sounds like an error. But there is no error that prevents the JsonPreprocessor from creating something. It would be possible to create the missing part, but this is not supported. It's a design decision. Therefore there is no need to mention, that something could not be done. To tell that something is not supported, is enough.

And this has nothing to do with 'nested' parameters.

A shorter version of the error message above can be:

Reason: The implicit creation of data structures based on parameters is not supported (affected expression: '${testdict.B}['${name}']').

namsonx commented 4 days ago

Hello Holger,

I created a change to stabi branch to update the error message which you mentioned in this ticket.

Thank you, Son

HolQue commented 2 days ago

Retest successful. Issue can be closed.