Skip to content

Commit 5fa49ac

Browse files
authored
actions: fix retrigger-multiple's json schema (#820)
Origin: https://bugzilla.mozilla.org/show_bug.cgi?id=1993306
1 parent 65b6496 commit 5fa49ac

File tree

1 file changed

+14
-11
lines changed

1 file changed

+14
-11
lines changed

src/taskgraph/actions/retrigger.py

Lines changed: 14 additions & 11 deletions
Original file line numberDiff line numberDiff line change
@@ -233,17 +233,20 @@ def _rerun_task(task_id, label):
233233
"requests": {
234234
"type": "array",
235235
"items": {
236-
"tasks": {
237-
"type": "array",
238-
"description": "An array of task labels",
239-
"items": {"type": "string"},
240-
},
241-
"times": {
242-
"type": "integer",
243-
"minimum": 1,
244-
"maximum": 100,
245-
"title": "Times",
246-
"description": "How many times to run each task.",
236+
"type": "object",
237+
"properties": {
238+
"tasks": {
239+
"type": "array",
240+
"description": "An array of task labels",
241+
"items": {"type": "string"},
242+
},
243+
"times": {
244+
"type": "integer",
245+
"minimum": 1,
246+
"maximum": 100,
247+
"title": "Times",
248+
"description": "How many times to run each task.",
249+
},
247250
},
248251
"additionalProperties": False,
249252
},

0 commit comments

Comments
 (0)