Fix the type for "slices" in the Delete By Query REST API specification (#51792) (#51793)

The previous patch in c1d9966d35d 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 68db7fc611622ca0e418f454249e376e01f80587)
This commit is contained in:
Karel Minarik 2020-02-02 19:30:14 +01:00 committed by GitHub
parent 050c4d4c89
commit 493f77d076
No known key found for this signature in database
GPG Key ID: 4AEE18F83AFDEB23
1 changed files with 2 additions and 2 deletions

View File

@ -178,9 +178,9 @@
"description": "The throttle for this request in sub-requests per second. -1 means no throttle." "description": "The throttle for this request in sub-requests per second. -1 means no throttle."
}, },
"slices": { "slices": {
"type": "number|auto", "type": "number|string",
"default": 1, "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":{ "body":{