-
Notifications
You must be signed in to change notification settings - Fork 636
Commit
This commit does not belong to any branch on this repository, and may belong to a fork outside of the repository.
DYN-6468 Add Guard for circular references that can impact Stringify.…
…JSON and Remember node (#14651) * Add depth gaurd for serializer * typo in gate tooltip * Add test and localized warning --------- Co-authored-by: Craig Long <[email protected]>
- Loading branch information
1 parent
b9ebaca
commit 7fdfc7f
Showing
7 changed files
with
247 additions
and
5 deletions.
There are no files selected for viewing
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Some generated files are not rendered by default. Learn more about how customized files appear on GitHub.
Oops, something went wrong.
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -0,0 +1,147 @@ | ||
{ | ||
"Uuid": "4fac373f-9349-4b71-975a-9cf02784050b", | ||
"IsCustomNode": false, | ||
"Description": "", | ||
"Name": "JSON_Serialization_Depth_Fail", | ||
"ElementResolver": { | ||
"ResolutionMap": {} | ||
}, | ||
"Inputs": [], | ||
"Outputs": [], | ||
"Nodes": [ | ||
{ | ||
"ConcreteType": "Dynamo.Graph.Nodes.CodeBlockNodeModel, DynamoCore", | ||
"Id": "498b579729a04e099c8209d4888fec47", | ||
"NodeType": "CodeBlockNode", | ||
"Inputs": [], | ||
"Outputs": [ | ||
{ | ||
"Id": "32dfd39fdd044440aabe4c81155f1622", | ||
"Name": "", | ||
"Description": "Value of expression at line 1", | ||
"UsingDefaultValue": false, | ||
"Level": 2, | ||
"UseLevels": false, | ||
"KeepListStructure": false | ||
} | ||
], | ||
"Replication": "Disabled", | ||
"Description": "Allows for DesignScript code to be authored directly", | ||
"Code": "[1,[2,[3,[4,[5,[6,[7,[8,[9,[10,[11,[12,[13,[14,[15,[false]]]]]]]]]]]]]]]];" | ||
}, | ||
{ | ||
"ConcreteType": "Dynamo.Graph.Nodes.ZeroTouch.DSFunction, DynamoCore", | ||
"Id": "cc45bec3172e40dab4d967e9dd81cbdd", | ||
"NodeType": "FunctionNode", | ||
"Inputs": [ | ||
{ | ||
"Id": "ad169e7d7ebc4fe9bd3f3807ad53385a", | ||
"Name": "values", | ||
"Description": "A List of values\n\nvar[]..[]", | ||
"UsingDefaultValue": false, | ||
"Level": 2, | ||
"UseLevels": false, | ||
"KeepListStructure": false | ||
} | ||
], | ||
"Outputs": [ | ||
{ | ||
"Id": "c92ff66756e04454bc444cad9ed6eb43", | ||
"Name": "json", | ||
"Description": "A JSON string where primitive types (e.g. double, int, boolean), Lists, and Dictionary's will be turned into the associated JSON type.", | ||
"UsingDefaultValue": false, | ||
"Level": 2, | ||
"UseLevels": false, | ||
"KeepListStructure": false | ||
} | ||
], | ||
"FunctionSignature": "DSCore.Data.StringifyJSON@var[]..[]", | ||
"Replication": "Auto", | ||
"Description": "Stringify converts an arbitrary value or a list of arbitrary values to JSON. Replication can be used to apply the operation over a list, producing a list of JSON strings.\n\nData.StringifyJSON (values: var[]..[]): string" | ||
} | ||
], | ||
"Connectors": [ | ||
{ | ||
"Start": "32dfd39fdd044440aabe4c81155f1622", | ||
"End": "ad169e7d7ebc4fe9bd3f3807ad53385a", | ||
"Id": "3775253b954646c9bb26d7ea0db8af10", | ||
"IsHidden": "False" | ||
} | ||
], | ||
"Dependencies": [], | ||
"NodeLibraryDependencies": [], | ||
"EnableLegacyPolyCurveBehavior": null, | ||
"Thumbnail": "", | ||
"GraphDocumentationURL": null, | ||
"ExtensionWorkspaceData": [ | ||
{ | ||
"ExtensionGuid": "28992e1d-abb9-417f-8b1b-05e053bee670", | ||
"Name": "Properties", | ||
"Version": "3.0", | ||
"Data": {} | ||
}, | ||
{ | ||
"ExtensionGuid": "DFBD9CC0-DB40-457A-939E-8C8555555A9D", | ||
"Name": "Generative Design", | ||
"Version": "8.0", | ||
"Data": {} | ||
} | ||
], | ||
"Author": "", | ||
"Linting": { | ||
"activeLinter": "None", | ||
"activeLinterId": "7b75fb44-43fd-4631-a878-29f4d5d8399a", | ||
"warningCount": 0, | ||
"errorCount": 0 | ||
}, | ||
"Bindings": [], | ||
"View": { | ||
"Dynamo": { | ||
"ScaleFactor": 1.0, | ||
"HasRunWithoutCrash": true, | ||
"IsVisibleInDynamoLibrary": true, | ||
"Version": "3.0.0.5795", | ||
"RunType": "Automatic", | ||
"RunPeriod": "1000" | ||
}, | ||
"Camera": { | ||
"Name": "_Background Preview", | ||
"EyeX": -17.0, | ||
"EyeY": 24.0, | ||
"EyeZ": 50.0, | ||
"LookX": 12.0, | ||
"LookY": -13.0, | ||
"LookZ": -58.0, | ||
"UpX": 0.0, | ||
"UpY": 1.0, | ||
"UpZ": 0.0 | ||
}, | ||
"ConnectorPins": [], | ||
"NodeViews": [ | ||
{ | ||
"Id": "498b579729a04e099c8209d4888fec47", | ||
"Name": "Code Block", | ||
"IsSetAsInput": false, | ||
"IsSetAsOutput": false, | ||
"Excluded": false, | ||
"ShowGeometry": true, | ||
"X": 74.5, | ||
"Y": 257.5 | ||
}, | ||
{ | ||
"Id": "cc45bec3172e40dab4d967e9dd81cbdd", | ||
"Name": "Data.StringifyJSON", | ||
"IsSetAsInput": false, | ||
"IsSetAsOutput": false, | ||
"Excluded": false, | ||
"ShowGeometry": true, | ||
"X": 855.5, | ||
"Y": 260.5 | ||
} | ||
], | ||
"Annotations": [], | ||
"X": 0.0, | ||
"Y": 0.0, | ||
"Zoom": 1.0 | ||
} | ||
} |