Skip to content

Commit 1a0dc60

Browse files
Update rest-api-spec (#5475)
Co-authored-by: pquentin <[email protected]>
1 parent 3cef634 commit 1a0dc60

File tree

105 files changed

+332
-152
lines changed

Some content is hidden

Large Commits have some content hidden by default. Use the searchbox below for content that may be hidden.

105 files changed

+332
-152
lines changed

output/schema/schema.json

Lines changed: 29 additions & 1 deletion
Some generated files are not rendered by default. Learn more about customizing how changed files appear on GitHub.

output/schema/validation-errors.json

Lines changed: 12 additions & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -1,5 +1,16 @@
11
{
2-
"endpointErrors": {},
2+
"endpointErrors": {
3+
"cat.segments": {
4+
"request": [
5+
"Request: missing json spec query parameter 'ignore_unavailable'",
6+
"Request: missing json spec query parameter 'ignore_throttled'",
7+
"Request: missing json spec query parameter 'allow_no_indices'",
8+
"Request: missing json spec query parameter 'expand_wildcards'",
9+
"Request: missing json spec query parameter 'allow_closed'"
10+
],
11+
"response": []
12+
}
13+
},
314
"generalErrors": [
415
"Dangling type '_global.scripts_painless_execute:PainlessExecutionPosition'",
516
"Dangling type '_global.scripts_painless_execute:PainlessScript'",

specification/_json_spec/_internal.update_desired_nodes.json

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -21,7 +21,7 @@
2121
"description": "the history id"
2222
},
2323
"version": {
24-
"type": "integer",
24+
"type": "int",
2525
"description": "the version number"
2626
}
2727
}

specification/_json_spec/async_search.submit.json

Lines changed: 8 additions & 7 deletions
Original file line numberDiff line numberDiff line change
@@ -45,7 +45,7 @@
4545
"default": "5d"
4646
},
4747
"batched_reduce_size": {
48-
"type": "number",
48+
"type": "long",
4949
"description": "The number of shard results that should be reduced at once on the coordinating node. This value should be used as the granularity at which progress results will be made available.",
5050
"default": 5
5151
},
@@ -90,7 +90,7 @@
9090
"description": "A comma-separated list of fields to return as the docvalue representation of a field for each hit"
9191
},
9292
"from": {
93-
"type": "number",
93+
"type": "int",
9494
"description": "Starting offset (default: 0)"
9595
},
9696
"ignore_unavailable": {
@@ -142,7 +142,7 @@
142142
"description": "Search operation type"
143143
},
144144
"size": {
145-
"type": "number",
145+
"type": "int",
146146
"description": "Number of hits to return (default: 10)"
147147
},
148148
"sort": {
@@ -162,7 +162,7 @@
162162
"description": "A list of fields to extract and return from the _source field"
163163
},
164164
"terminate_after": {
165-
"type": "number",
165+
"type": "long",
166166
"description": "The maximum number of documents to collect for each shard, upon reaching which the query execution will terminate early."
167167
},
168168
"stats": {
@@ -180,7 +180,7 @@
180180
"description": "Specify suggest mode"
181181
},
182182
"suggest_size": {
183-
"type": "number",
183+
"type": "long",
184184
"description": "How many suggestions to return in response"
185185
},
186186
"suggest_text": {
@@ -217,13 +217,14 @@
217217
"description": "Specify whether to return sequence number and primary term of the last modification of each hit"
218218
},
219219
"max_concurrent_shard_requests": {
220-
"type": "number",
220+
"type": "int",
221221
"description": "The number of concurrent shard requests per node this search executes concurrently. This value should be used to limit the impact of the search on the cluster in order to limit the number of concurrent shard requests",
222222
"default": 5
223223
}
224224
},
225225
"body": {
226-
"description": "The search definition using the Query DSL"
226+
"description": "The search definition using the Query DSL",
227+
"required": false
227228
}
228229
}
229230
}

specification/_json_spec/cat.segments.json

Lines changed: 23 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -71,6 +71,29 @@
7171
"type": "enum",
7272
"description": "The unit in which to display time values",
7373
"options": ["d", "h", "m", "s", "ms", "micros", "nanos"]
74+
},
75+
"ignore_unavailable": {
76+
"type": "boolean",
77+
"description": "Whether specified concrete indices should be ignored when unavailable (missing or closed). Only allowed when providing an index expression."
78+
},
79+
"ignore_throttled": {
80+
"type": "boolean",
81+
"description": "Whether specified concrete, expanded or aliased indices should be ignored when throttled. Only allowed when providing an index expression."
82+
},
83+
"allow_no_indices": {
84+
"type": "boolean",
85+
"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). Only allowed when providing an index expression."
86+
},
87+
"expand_wildcards": {
88+
"type": "enum",
89+
"options": ["open", "closed", "hidden", "none", "all"],
90+
"default": "open",
91+
"description": "Whether to expand wildcard expression to concrete indices that are open, closed or both."
92+
},
93+
"allow_closed": {
94+
"type": "boolean",
95+
"description": "If true, allow closed indices to be returned in the response otherwise if false, keep the legacy behaviour of throwing an exception if index pattern matches closed indices",
96+
"default": false
7497
}
7598
}
7699
}

specification/_json_spec/clear_scroll.json

Lines changed: 2 additions & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -35,7 +35,8 @@
3535
},
3636
"params": {},
3737
"body": {
38-
"description": "A comma-separated list of scroll IDs to clear if none was specified via the scroll_id parameter"
38+
"description": "A comma-separated list of scroll IDs to clear if none was specified via the scroll_id parameter",
39+
"required": false
3940
}
4041
}
4142
}

specification/_json_spec/close_point_in_time.json

Lines changed: 2 additions & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -20,7 +20,8 @@
2020
},
2121
"params": {},
2222
"body": {
23-
"description": "a point-in-time id to close"
23+
"description": "a point-in-time id to close",
24+
"required": true
2425
}
2526
}
2627
}

specification/_json_spec/cluster.allocation_explain.json

Lines changed: 3 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -24,7 +24,7 @@
2424
"description": "Specifies the name of the index that you would like an explanation for"
2525
},
2626
"shard": {
27-
"type": "number",
27+
"type": "int",
2828
"description": "Specifies the ID of the shard that you would like an explanation for"
2929
},
3030
"primary": {
@@ -52,7 +52,8 @@
5252
}
5353
},
5454
"body": {
55-
"description": "The index, shard, and primary flag to explain. Empty means 'explain a randomly-chosen unassigned shard'"
55+
"description": "The index, shard, and primary flag to explain. Empty means 'explain a randomly-chosen unassigned shard'",
56+
"required": false
5657
}
5758
}
5859
}

specification/_json_spec/cluster.reroute.json

Lines changed: 2 additions & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -61,7 +61,8 @@
6161
}
6262
},
6363
"body": {
64-
"description": "The definition of `commands` to perform (`move`, `cancel`, `allocate`)"
64+
"description": "The definition of `commands` to perform (`move`, `cancel`, `allocate`)",
65+
"required": false
6566
}
6667
}
6768
}

specification/_json_spec/cluster.state.json

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -79,7 +79,7 @@
7979
"description": "Return settings in flat format (default: false)"
8080
},
8181
"wait_for_metadata_version": {
82-
"type": "number",
82+
"type": "long",
8383
"description": "Wait for the metadata version to be equal or greater than the specified metadata version"
8484
},
8585
"wait_for_timeout": {

0 commit comments

Comments
 (0)