Skip to content

Commit aa84744

Browse files
Update rest-api-spec (#4936)
Co-authored-by: pquentin <42327+pquentin@users.noreply.github.com>
1 parent 0edf68a commit aa84744

File tree

3 files changed

+30
-6
lines changed

3 files changed

+30
-6
lines changed

output/schema/validation-errors.json

Lines changed: 9 additions & 6 deletions
Original file line numberDiff line numberDiff line change
@@ -1,5 +1,14 @@
11
{
22
"endpointErrors": {
3+
"cluster.allocation_explain": {
4+
"request": [
5+
"Request: missing json spec query parameter 'index'",
6+
"Request: missing json spec query parameter 'shard'",
7+
"Request: missing json spec query parameter 'primary'",
8+
"Request: missing json spec query parameter 'current_node'"
9+
],
10+
"response": []
11+
},
312
"msearch": {
413
"request": [
514
"Request: query parameter 'allow_no_indices' does not exist in the json spec",
@@ -11,12 +20,6 @@
1120
],
1221
"response": []
1322
},
14-
"reindex": {
15-
"request": [
16-
"Request: query parameter 'require_alias' does not exist in the json spec"
17-
],
18-
"response": []
19-
},
2023
"searchable_snapshots.clear_cache": {
2124
"request": [
2225
"Request: missing json spec query parameter 'index'"

specification/_json_spec/cluster.allocation_explain.json

Lines changed: 16 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -19,6 +19,22 @@
1919
]
2020
},
2121
"params": {
22+
"index": {
23+
"type": "string",
24+
"description": "Specifies the name of the index that you would like an explanation for"
25+
},
26+
"shard": {
27+
"type": "number",
28+
"description": "Specifies the ID of the shard that you would like an explanation for"
29+
},
30+
"primary": {
31+
"type": "boolean",
32+
"description": "If true, returns explanation for the primary shard for the given shard ID"
33+
},
34+
"current_node": {
35+
"type": "string",
36+
"description": "Specifies the node ID or the name of the node to only explain a shard that is currently located on the specified node"
37+
},
2238
"master_timeout": {
2339
"type": "time",
2440
"description": "Timeout for connection to master node"

specification/_json_spec/reindex.json

Lines changed: 5 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -55,6 +55,11 @@
5555
"max_docs": {
5656
"type": "number",
5757
"description": "Maximum number of documents to process (default: all documents)"
58+
},
59+
"require_alias": {
60+
"type": "boolean",
61+
"default": false,
62+
"description": "When true, requires destination to be an alias."
5863
}
5964
},
6065
"body": {

0 commit comments

Comments
 (0)