You signed in with another tab or window. Reload to refresh your session.You signed out in another tab or window. Reload to refresh your session.You switched accounts on another tab or window. Reload to refresh your session.Dismiss alert
Due to the default depth of 2 for ConvertTo-Json, functions Invoke-TestHandlerAction, Merge-Datum and Merge-HashTable may write warning "Resulting JSON is truncated as serialization has exceeded the set depth of 2" when using deep structures. Try, for example:
The warning is shown even if -Debug or -Verbose are not used, since Powershell solves the command inside the string before checking whether such string has to follow the proper stream.
I suggest either using -Depth 10 (seems a reasonable depth without killing performance) or perhaps using the depth specified in $Datum.__Definition.default_lookup_options.
I'm available to create a PR.
The text was updated successfully, but these errors were encountered:
Due to the default depth of 2 for
ConvertTo-Json
, functionsInvoke-TestHandlerAction
,Merge-Datum
andMerge-HashTable
may write warning "Resulting JSON is truncated as serialization has exceeded the set depth of 2" when using deep structures. Try, for example:The warning is shown even if
-Debug
or-Verbose
are not used, since Powershell solves the command inside the string before checking whether such string has to follow the proper stream.I suggest either using
-Depth 10
(seems a reasonable depth without killing performance) or perhaps using the depth specified in$Datum.__Definition.default_lookup_options
.I'm available to create a PR.
The text was updated successfully, but these errors were encountered: