Skip to content
Merged
Show file tree
Hide file tree
Changes from all commits
Commits
File filter

Filter by extension

Filter by extension

Conversations
Failed to load comments.
Loading
Jump to
Jump to file
Failed to load files.
Loading
Diff view
Diff view
Binary file modified JsonPreprocessor/JsonPreprocessor.pdf
Binary file not shown.
2 changes: 1 addition & 1 deletion config/repository_config.json
Original file line number Diff line number Diff line change
Expand Up @@ -13,7 +13,7 @@
"DEVELOPMENTSTATUS" : "Development Status :: 4 - Beta",
"INTENDEDAUDIENCE" : "Intended Audience :: Developers",
"TOPIC" : "Topic :: Software Development",
"INSTALLREQUIRES" : [],
"INSTALLREQUIRES" : ["pydotdict"],
"PACKAGEDATA" : ["*.pdf"],
"PACKAGEDOC" : "./packagedoc"
}
18 changes: 13 additions & 5 deletions packagedoc/additional_docs/The JSONP format.tex
Original file line number Diff line number Diff line change
Expand Up @@ -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"
Expand All @@ -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:
Expand Down Expand Up @@ -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.

Expand Down Expand Up @@ -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}

Expand All @@ -1054,7 +1062,7 @@ \section{Dynamic key names}
\textbf{Outcome:}

\begin{pythonlog}
<TODO: error message>
A substitution in key names is not allowed! Please update the key name "${strval}_2"
\end{pythonlog}


Expand Down