diff --git a/JsonPreprocessor/JsonPreprocessor.pdf b/JsonPreprocessor/JsonPreprocessor.pdf index 824c13b5..dedf3330 100644 Binary files a/JsonPreprocessor/JsonPreprocessor.pdf and b/JsonPreprocessor/JsonPreprocessor.pdf differ diff --git a/config/repository_config.json b/config/repository_config.json index d99637f9..5296d254 100644 --- a/config/repository_config.json +++ b/config/repository_config.json @@ -13,7 +13,7 @@ "DEVELOPMENTSTATUS" : "Development Status :: 4 - Beta", "INTENDEDAUDIENCE" : "Intended Audience :: Developers", "TOPIC" : "Topic :: Software Development", - "INSTALLREQUIRES" : [], + "INSTALLREQUIRES" : ["pydotdict"], "PACKAGEDATA" : ["*.pdf"], "PACKAGEDOC" : "./packagedoc" } diff --git a/packagedoc/additional_docs/The JSONP format.tex b/packagedoc/additional_docs/The JSONP format.tex index c33f334b..c5f74fd9 100644 --- a/packagedoc/additional_docs/The JSONP format.tex +++ b/packagedoc/additional_docs/The JSONP format.tex @@ -603,7 +603,7 @@ \section{Overwrite parameters}\label{overwrite-parameters} \vspace{2ex} -Using composite data types inside strings causes errors: +Using composite data types inside strings is not supported: \begin{pythoncode} "newparam6" : "prefix_${listval}_suffix" @@ -615,10 +615,18 @@ \section{Overwrite parameters}\label{overwrite-parameters} "newparam7" : "prefix_${dictval}_suffix" \end{pythoncode} -\textbf{TODO:} \href{https://github.com/test-fullautomation/python-jsonpreprocessor/issues/249}{Parameter substitution needs to be limited} +\vspace{2ex} + +Result for \pcode{"newparam6"}: \vspace{2ex} +\begin{pythonlog} +The substitution of parameter '${listval}' inside the string value 'prefix_${listval}_suffix' is not supported! Composite data types like lists and dictionaries cannot be substituted inside strings. +\end{pythonlog} + +\newpage + \textbf{Value of a single element of a parameter of nested data type} To access an element of a list and a key of a dictionary, we change the content of file \plog{componentB.2.jsonp} to: @@ -998,7 +1006,7 @@ \section{Dynamic key names} \end{pythoncode} The value of \pcode{newparam1} is defined by an expression that is encapsulated in quotes and contains - beneath hard coded parts - a dollar operator expression -that is the dynamic part. +(that is the dynamic part). The same is also possible on the left hand side of the colon. In this case the name of a parameter is created dynamically. @@ -1040,7 +1048,7 @@ \section{Dynamic key names} \vspace{2ex} -This will not work: +This will not work (because of a key with name \pcode{A_2} does not yet exist): \vspace{2ex} @@ -1054,7 +1062,7 @@ \section{Dynamic key names} \textbf{Outcome:} \begin{pythonlog} - +A substitution in key names is not allowed! Please update the key name "${strval}_2" \end{pythonlog}