diff --git a/src/mozilla_taskgraph/worker_types.py b/src/mozilla_taskgraph/worker_types.py index ce37271..3bac674 100644 --- a/src/mozilla_taskgraph/worker_types.py +++ b/src/mozilla_taskgraph/worker_types.py @@ -478,7 +478,7 @@ def dash_to_underscore(obj): { Required("data"): str, Required("content-type"): str, - Required("destinations"): [str], + Required("destinations"): [taskref_or_string], }, ], Optional("dry-run"): bool, diff --git a/test/test_worker_types.py b/test/test_worker_types.py index 96912fe..f375dd9 100644 --- a/test/test_worker_types.py +++ b/test/test_worker_types.py @@ -1129,6 +1129,7 @@ def test_beetmover_upload_data(build_payload): "destinations": [ "foo.txt", "bar.txt", + {"task-reference": ""}, ], }, ], @@ -1146,6 +1147,7 @@ def test_beetmover_upload_data(build_payload): "destinations": [ "foo.txt", "bar.txt", + {"task-reference": ""}, ], }, ],