Skip to content

Commit b6972ac

Browse files
Update rest-api-spec (#4958)
Co-authored-by: pquentin <[email protected]>
1 parent 670dd8c commit b6972ac

File tree

3 files changed

+24
-10
lines changed

3 files changed

+24
-10
lines changed

output/schema/validation-errors.json

Lines changed: 8 additions & 6 deletions
Original file line numberDiff line numberDiff line change
@@ -1,5 +1,13 @@
11
{
22
"endpointErrors": {
3+
"indices.recovery": {
4+
"request": [
5+
"Request: missing json spec query parameter 'ignore_unavailable'",
6+
"Request: missing json spec query parameter 'allow_no_indices'",
7+
"Request: missing json spec query parameter 'expand_wildcards'"
8+
],
9+
"response": []
10+
},
311
"msearch": {
412
"request": [
513
"Request: query parameter 'allow_no_indices' does not exist in the json spec",
@@ -10,12 +18,6 @@
1018
"Request: query parameter 'routing' does not exist in the json spec"
1119
],
1220
"response": []
13-
},
14-
"searchable_snapshots.clear_cache": {
15-
"request": [
16-
"Request: missing json spec query parameter 'index'"
17-
],
18-
"response": []
1921
}
2022
},
2123
"generalErrors": []

specification/_json_spec/indices.recovery.json

Lines changed: 16 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -37,6 +37,22 @@
3737
"type": "boolean",
3838
"description": "Display only those recoveries that are currently on-going",
3939
"default": false
40+
},
41+
"ignore_unavailable": {
42+
"type": "boolean",
43+
"description": "Whether specified concrete indices should be ignored when unavailable (missing or closed)",
44+
"default": false
45+
},
46+
"allow_no_indices": {
47+
"type": "boolean",
48+
"description": "Whether to ignore if a wildcard indices expression resolves into no concrete indices. (This includes `_all` string or when no indices have been specified)",
49+
"default": true
50+
},
51+
"expand_wildcards": {
52+
"type": "enum",
53+
"options": ["open", "closed", "hidden", "none", "all"],
54+
"default": "open",
55+
"description": "Whether to expand wildcard expression to concrete indices that are open, closed or both."
4056
}
4157
}
4258
}

specification/_json_spec/searchable_snapshots.clear_cache.json

Lines changed: 0 additions & 4 deletions
Original file line numberDiff line numberDiff line change
@@ -41,10 +41,6 @@
4141
"options": ["open", "closed", "none", "all"],
4242
"default": "open",
4343
"description": "Whether to expand wildcard expression to concrete indices that are open, closed or both."
44-
},
45-
"index": {
46-
"type": "list",
47-
"description": "A comma-separated list of index name to limit the operation"
4844
}
4945
}
5046
}

0 commit comments

Comments
 (0)