Skip to content

Commit 19bb9bf

Browse files
Update rest-api-spec (#3822)
Co-authored-by: pquentin <[email protected]>
1 parent 16094c3 commit 19bb9bf

File tree

4 files changed

+18
-22
lines changed

4 files changed

+18
-22
lines changed

output/schema/validation-errors.json

Lines changed: 0 additions & 11 deletions
Original file line numberDiff line numberDiff line change
@@ -56,13 +56,6 @@
5656
],
5757
"response": []
5858
},
59-
"cat.help": {
60-
"request": [
61-
"Request: missing json spec query parameter 'help'",
62-
"Request: missing json spec query parameter 's'"
63-
],
64-
"response": []
65-
},
6659
"cat.indices": {
6760
"request": [
6861
"request definition cat.indices:Request / body - A request with inherited properties must have a PropertyBody"
@@ -138,8 +131,6 @@
138131
},
139132
"cat.segments": {
140133
"request": [
141-
"Request: query parameter 'local' does not exist in the json spec",
142-
"Request: query parameter 'master_timeout' does not exist in the json spec",
143134
"request definition cat.segments:Request / body - A request with inherited properties must have a PropertyBody"
144135
],
145136
"response": []
@@ -158,8 +149,6 @@
158149
},
159150
"cat.tasks": {
160151
"request": [
161-
"Request: query parameter 'timeout' does not exist in the json spec",
162-
"Request: query parameter 'wait_for_completion' does not exist in the json spec",
163152
"request definition cat.tasks:Request / body - A request with inherited properties must have a PropertyBody"
164153
],
165154
"response": []

specification/_json_spec/cat.help.json

Lines changed: 0 additions & 11 deletions
Original file line numberDiff line numberDiff line change
@@ -16,17 +16,6 @@
1616
"methods": ["GET"]
1717
}
1818
]
19-
},
20-
"params": {
21-
"help": {
22-
"type": "boolean",
23-
"description": "Return help information",
24-
"default": false
25-
},
26-
"s": {
27-
"type": "list",
28-
"description": "Comma-separated list of column names or column aliases to sort by"
29-
}
3019
}
3120
}
3221
}

specification/_json_spec/cat.segments.json

Lines changed: 8 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -32,6 +32,14 @@
3232
"type": "string",
3333
"description": "a short version of the Accept header, e.g. json, yaml"
3434
},
35+
"local": {
36+
"type": "boolean",
37+
"description": "Return local information, do not retrieve the state from master node (default: false)"
38+
},
39+
"master_timeout": {
40+
"type": "time",
41+
"description": "Explicit operation timeout for connection to master node"
42+
},
3543
"bytes": {
3644
"type": "enum",
3745
"description": "The unit in which to display byte values",

specification/_json_spec/cat.tasks.json

Lines changed: 10 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -60,6 +60,16 @@
6060
"type": "boolean",
6161
"description": "Verbose mode. Display column headers",
6262
"default": false
63+
},
64+
"timeout": {
65+
"type": "time",
66+
"default": "30s",
67+
"description": "Period to wait for a response. If no response is received before the timeout expires, the request fails and returns an error."
68+
},
69+
"wait_for_completion": {
70+
"type": "boolean",
71+
"default": false,
72+
"description": "If `true`, the request blocks until the task has completed."
6373
}
6474
}
6575
}

0 commit comments

Comments
 (0)