When loading task metadata there are some assumptions made about the shape of the data that do not always hold true (especially about hash or iterable objects). When an invalid type is set in the metadata a cryptic error message (typically something like ` no [] for nill class...` can be raised which is hard to troubleshoot. Add some validation to prevent some of these errors especially where it is easy for the user to accidentally give the wrong metadata.
When loading task metadata there are some assumptions made about the shape of the data that do not always hold true (especially about hash or iterable objects). When an invalid type is set in the metadata a cryptic error message (typically something like ` no [] for nill class...` can be raised which is hard to troubleshoot. Add some validation to prevent some of these errors especially where it is easy for the user to accidentally give the wrong metadata.