Skip to content

Commit 493f77d

Browse files
authored
Fix the type for "slices" in the Delete By Query REST API specification (#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)
1 parent 050c4d4 commit 493f77d

File tree

1 file changed

+2
-2
lines changed

1 file changed

+2
-2
lines changed

rest-api-spec/src/main/resources/rest-api-spec/api/delete_by_query.json

+2-2
Original file line numberDiff line numberDiff line change
@@ -178,9 +178,9 @@
178178
"description": "The throttle for this request in sub-requests per second. -1 means no throttle."
179179
},
180180
"slices": {
181-
"type": "number|auto",
181+
"type": "number|string",
182182
"default": 1,
183-
"description": "The number of slices this task should be divided into. Defaults to 1, meaning the task isn't sliced into subtasks."
183+
"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`."
184184
}
185185
},
186186
"body":{

0 commit comments

Comments
 (0)