Deserializing a SpeckleAbstract object which has a field or property of a type List<int> properly populates the property.
Actual Behaviour
Currently returns the object with an empty list. Behavior is due to the fact that all numbers are received as type long which results in an error when adding to a List<int>.
Affected Projects
SpeckleCore
Reproduction Steps & System Config (win, osx, web, etc.)
Create class with a property of List<int>.
Set the value of the property to be non-empty list.
Allow SpeckleCore to serialize and send the object.
Receiving the object returns an object with an empty list.
Proposed Solution (if any)
Convert the object to be added to the property/field list explicitly.
Patch
Step 0:
Expected Behaviour
Deserializing a SpeckleAbstract object which has a field or property of a type
List<int>
properly populates the property.Actual Behaviour
Currently returns the object with an empty list. Behavior is due to the fact that all numbers are received as type
long
which results in an error when adding to aList<int>
.Affected Projects
SpeckleCore
Reproduction Steps & System Config (win, osx, web, etc.)
List<int>
.Proposed Solution (if any)
Convert the object to be added to the property/field list explicitly. Patch