Closed otto-ifak closed 1 week ago
In JSON deserialization, the SDK accepts empty objects where an array is expected. Eg. keys in the following:
keys
{ "modelType": "Property", "valueId": { "type": "ModelReference", "keys": {} } }
I guess this is caused by code like the following:
if not isinstance(jsonable, collections.abc.Iterable): raise DeserializationException( f"Expected an iterable, but got: {type(jsonable)}" )
(Dict implements Iterable)
Thanks! Wĥat a footgun, Python!
:laughing: yes
In JSON deserialization, the SDK accepts empty objects where an array is expected. Eg.
keys
in the following:I guess this is caused by code like the following:
(Dict implements Iterable)