Skip to content

Commit

Permalink
Fix the type for "slices" in the Delete By Query REST API specificati…
Browse files Browse the repository at this point in the history
…on (#51792) (#51793)

The previous patch in c1d9966 incorrectly set the `type` to `number|auto`,
which is incorrect — the "polymorphic" type, denoted with the `|` sign,
should contain only other types, ie. number, string, bool, etc.

Fixes #51535

(cherry picked from commit 68db7fc)
  • Loading branch information
karmi authored Feb 2, 2020
1 parent 050c4d4 commit 493f77d
Showing 1 changed file with 2 additions and 2 deletions.
Original file line number Diff line number Diff line change
Expand Up @@ -178,9 +178,9 @@
"description": "The throttle for this request in sub-requests per second. -1 means no throttle."
},
"slices": {
"type": "number|auto",
"type": "number|string",
"default": 1,
"description": "The number of slices this task should be divided into. Defaults to 1, meaning the task isn't sliced into subtasks."
"description": "The number of slices this task should be divided into. Defaults to 1, meaning the task isn't sliced into subtasks. Can be set to `auto`."
}
},
"body":{
Expand Down

0 comments on commit 493f77d

Please sign in to comment.