temporalio / sdk-python

Temporal Python SDK
MIT License
474 stars 77 forks source link

[Bug] dataclasses require even defaulted fields in the JSON dict #427

Open cretz opened 1 year ago

cretz commented 1 year ago

Describe the bug

It appears, at first code glance, that a dataclass cannot deserialize a JSON dict that doesn't have all fields including ones with defaults. This is a bug, we should not require all fields of a dataclass be present.