We read every piece of feedback, and take your input very seriously.
To see all available qualifiers, see our documentation.
There was an error while loading. Please reload this page.
1 parent e83eda3 commit 58e35a5Copy full SHA for 58e35a5
packages/dask-task-models-library/src/dask_task_models_library/container_tasks/io.py
@@ -195,7 +195,9 @@ def from_task_output(
195
with suppress(json.JSONDecodeError):
196
# NOTE: The suppression here is ok, since if the data is empty,
197
# there will be a validation error anyway
198
- data = json_loads(output_data_file.read_text())
+ loaded_data = json_loads(output_data_file.read_text())
199
+ # ignore what is not in the schema
200
+ data = {k: v for k, v in loaded_data.items() if k in schema}
201
202
for output_key, output_params in schema.items():
203
if isinstance(output_params, FilePortSchema):
0 commit comments