Skip to content

Commit 23d5b1a

Browse files
Update rest-api-spec (#5482)
Co-authored-by: pquentin <[email protected]>
1 parent 8c83f60 commit 23d5b1a

File tree

277 files changed

+795
-192
lines changed

Some content is hidden

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

277 files changed

+795
-192
lines changed

output/schema/schema.json

Lines changed: 1 addition & 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.status.json

Lines changed: 1 addition & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -26,6 +26,7 @@
2626
"params": {
2727
"keep_alive": {
2828
"type": "time",
29+
"default": "5d",
2930
"description": "Specify the time interval in which the results (partial or final) for this search will be available"
3031
}
3132
}

specification/_json_spec/async_search.submit.json

Lines changed: 11 additions & 9 deletions
Original file line numberDiff line numberDiff line change
@@ -45,12 +45,13 @@
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
},
5252
"request_cache": {
5353
"type": "boolean",
54+
"default": true,
5455
"description": "Specify if request cache should be used for this request or not, defaults to true"
5556
},
5657
"analyzer": {
@@ -68,8 +69,8 @@
6869
},
6970
"default_operator": {
7071
"type": "enum",
71-
"options": ["AND", "OR"],
72-
"default": "OR",
72+
"options": ["and", "or"],
73+
"default": "or",
7374
"description": "The default operator for query string query (AND or OR)"
7475
},
7576
"df": {
@@ -89,7 +90,7 @@
8990
"description": "A comma-separated list of fields to return as the docvalue representation of a field for each hit"
9091
},
9192
"from": {
92-
"type": "number",
93+
"type": "int",
9394
"description": "Starting offset (default: 0)"
9495
},
9596
"ignore_unavailable": {
@@ -141,7 +142,7 @@
141142
"description": "Search operation type"
142143
},
143144
"size": {
144-
"type": "number",
145+
"type": "int",
145146
"description": "Number of hits to return (default: 10)"
146147
},
147148
"sort": {
@@ -161,7 +162,7 @@
161162
"description": "A list of fields to extract and return from the _source field"
162163
},
163164
"terminate_after": {
164-
"type": "number",
165+
"type": "long",
165166
"description": "The maximum number of documents to collect for each shard, upon reaching which the query execution will terminate early."
166167
},
167168
"stats": {
@@ -179,7 +180,7 @@
179180
"description": "Specify suggest mode"
180181
},
181182
"suggest_size": {
182-
"type": "number",
183+
"type": "long",
183184
"description": "How many suggestions to return in response"
184185
},
185186
"suggest_text": {
@@ -216,13 +217,14 @@
216217
"description": "Specify whether to return sequence number and primary term of the last modification of each hit"
217218
},
218219
"max_concurrent_shard_requests": {
219-
"type": "number",
220+
"type": "int",
220221
"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",
221222
"default": 5
222223
}
223224
},
224225
"body": {
225-
"description": "The search definition using the Query DSL"
226+
"description": "The search definition using the Query DSL",
227+
"required": false
226228
}
227229
}
228230
}

specification/_json_spec/autoscaling.delete_autoscaling_policy.json

Lines changed: 1 addition & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -31,6 +31,7 @@
3131
},
3232
"timeout": {
3333
"type": "time",
34+
"default": "30s",
3435
"description": "Timeout for acknowledgement of update from all nodes in cluster"
3536
}
3637
}

specification/_json_spec/autoscaling.put_autoscaling_policy.json

Lines changed: 1 addition & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -32,6 +32,7 @@
3232
},
3333
"timeout": {
3434
"type": "time",
35+
"default": "30s",
3536
"description": "Timeout for acknowledgement of update from all nodes in cluster"
3637
}
3738
},

specification/_json_spec/bulk.json

Lines changed: 7 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -31,11 +31,13 @@
3131
"params": {
3232
"wait_for_active_shards": {
3333
"type": "string",
34+
"default": "1",
3435
"description": "Sets the number of shard copies that must be active before proceeding with the bulk operation. Defaults to 1, meaning the primary shard only. Set to `all` for all shard copies, otherwise set to any non-negative value less than or equal to the total number of copies for the shard (number of replicas + 1)"
3536
},
3637
"refresh": {
3738
"type": "enum",
3839
"options": ["true", "false", "wait_for"],
40+
"default": "false",
3941
"description": "If `true` then refresh the affected shards to make this operation visible to search, if `wait_for` then wait for a refresh to make this operation visible to search, if `false` (the default) then do nothing with refreshes."
4042
},
4143
"routing": {
@@ -44,6 +46,7 @@
4446
},
4547
"timeout": {
4648
"type": "time",
49+
"default": "1m",
4750
"description": "Explicit operation timeout"
4851
},
4952
"_source": {
@@ -64,18 +67,22 @@
6467
},
6568
"require_alias": {
6669
"type": "boolean",
70+
"default": false,
6771
"description": "If true, the request's actions must target an index alias. Defaults to false."
6872
},
6973
"require_data_stream": {
7074
"type": "boolean",
75+
"default": false,
7176
"description": "If true, the request's actions must target a data stream (existing or to-be-created). Default to false"
7277
},
7378
"list_executed_pipelines": {
7479
"type": "boolean",
80+
"default": false,
7581
"description": "Sets list_executed_pipelines for all incoming documents. Defaults to unset (false)"
7682
},
7783
"include_source_on_error": {
7884
"type": "boolean",
85+
"default": true,
7986
"description": "True or false if to include the document source in the error message in case of parsing errors. Defaults to true."
8087
}
8188
},

specification/_json_spec/cat.allocation.json

Lines changed: 1 addition & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -45,6 +45,7 @@
4545
},
4646
"local": {
4747
"type": "boolean",
48+
"default": false,
4849
"description": "Return local information, do not retrieve the state from master node (default: false)"
4950
},
5051
"master_timeout": {

specification/_json_spec/cat.component_templates.json

Lines changed: 1 addition & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -35,6 +35,7 @@
3535
},
3636
"local": {
3737
"type": "boolean",
38+
"default": false,
3839
"description": "Return local information, do not retrieve the state from master node (default: false)"
3940
},
4041
"master_timeout": {

0 commit comments

Comments
 (0)