diff --git a/output/openapi/elasticsearch-openapi.json b/output/openapi/elasticsearch-openapi.json index bab3aee1eb..0f014fc9f8 100644 --- a/output/openapi/elasticsearch-openapi.json +++ b/output/openapi/elasticsearch-openapi.json @@ -147316,7 +147316,8 @@ } } } - } + }, + "required": true }, "watcher.query_watches": { "content": { diff --git a/output/schema/schema.json b/output/schema/schema.json index d7d145cf99..2163d4a6cc 100644 --- a/output/schema/schema.json +++ b/output/schema/schema.json @@ -23568,7 +23568,7 @@ "name": "Request", "namespace": "watcher.put_watch" }, - "requestBodyRequired": false, + "requestBodyRequired": true, "requestMediaType": [ "application/json" ], diff --git a/specification/_json_spec/cat.aliases.json b/specification/_json_spec/cat.aliases.json index 1176383e42..008ba2db52 100644 --- a/specification/_json_spec/cat.aliases.json +++ b/specification/_json_spec/cat.aliases.json @@ -30,6 +30,7 @@ "params": { "format": { "type": "string", + "default": "text", "description": "a short version of the Accept header, e.g. json, yaml" }, "local": { diff --git a/specification/_json_spec/cat.allocation.json b/specification/_json_spec/cat.allocation.json index 0795e4009e..5597bec49f 100644 --- a/specification/_json_spec/cat.allocation.json +++ b/specification/_json_spec/cat.allocation.json @@ -30,12 +30,13 @@ "params": { "format": { "type": "string", + "default": "text", "description": "a short version of the Accept header, e.g. json, yaml" }, "bytes": { "type": "enum", "description": "The unit in which to display byte values", - "options": ["b", "k", "kb", "m", "mb", "g", "gb", "t", "tb", "p", "pb"] + "options": ["b", "kb", "mb", "gb", "tb", "pb"] }, "local": { "type": "boolean", diff --git a/specification/_json_spec/cat.component_templates.json b/specification/_json_spec/cat.component_templates.json index 7f09f4e574..6a6781891c 100644 --- a/specification/_json_spec/cat.component_templates.json +++ b/specification/_json_spec/cat.component_templates.json @@ -30,6 +30,7 @@ "params": { "format": { "type": "string", + "default": "text", "description": "a short version of the Accept header, e.g. json, yaml" }, "local": { diff --git a/specification/_json_spec/cat.count.json b/specification/_json_spec/cat.count.json index f71426a01a..99f9eb9a89 100644 --- a/specification/_json_spec/cat.count.json +++ b/specification/_json_spec/cat.count.json @@ -30,6 +30,7 @@ "params": { "format": { "type": "string", + "default": "text", "description": "a short version of the Accept header, e.g. json, yaml" }, "h": { diff --git a/specification/_json_spec/cat.fielddata.json b/specification/_json_spec/cat.fielddata.json index aa7494d81d..f6c0fe5cac 100644 --- a/specification/_json_spec/cat.fielddata.json +++ b/specification/_json_spec/cat.fielddata.json @@ -30,12 +30,13 @@ "params": { "format": { "type": "string", + "default": "text", "description": "a short version of the Accept header, e.g. json, yaml" }, "bytes": { "type": "enum", "description": "The unit in which to display byte values", - "options": ["b", "k", "kb", "m", "mb", "g", "gb", "t", "tb", "p", "pb"] + "options": ["b", "kb", "mb", "gb", "tb", "pb"] }, "h": { "type": "list", diff --git a/specification/_json_spec/cat.health.json b/specification/_json_spec/cat.health.json index 8f1359cf4f..e058393a16 100644 --- a/specification/_json_spec/cat.health.json +++ b/specification/_json_spec/cat.health.json @@ -20,6 +20,7 @@ "params": { "format": { "type": "string", + "default": "text", "description": "a short version of the Accept header, e.g. json, yaml" }, "h": { diff --git a/specification/_json_spec/cat.indices.json b/specification/_json_spec/cat.indices.json index 5ff03a1572..a087e9a436 100644 --- a/specification/_json_spec/cat.indices.json +++ b/specification/_json_spec/cat.indices.json @@ -30,12 +30,13 @@ "params": { "format": { "type": "string", + "default": "text", "description": "a short version of the Accept header, e.g. json, yaml" }, "bytes": { "type": "enum", "description": "The unit in which to display byte values", - "options": ["b", "k", "kb", "m", "mb", "g", "gb", "t", "tb", "p", "pb"] + "options": ["b", "kb", "mb", "gb", "tb", "pb"] }, "master_timeout": { "type": "time", diff --git a/specification/_json_spec/cat.master.json b/specification/_json_spec/cat.master.json index 2cbf9cce9a..50f1353571 100644 --- a/specification/_json_spec/cat.master.json +++ b/specification/_json_spec/cat.master.json @@ -20,6 +20,7 @@ "params": { "format": { "type": "string", + "default": "text", "description": "a short version of the Accept header, e.g. json, yaml" }, "local": { diff --git a/specification/_json_spec/cat.ml_data_frame_analytics.json b/specification/_json_spec/cat.ml_data_frame_analytics.json index ce66ee7b2a..5f222eac94 100644 --- a/specification/_json_spec/cat.ml_data_frame_analytics.json +++ b/specification/_json_spec/cat.ml_data_frame_analytics.json @@ -36,10 +36,11 @@ "bytes": { "type": "enum", "description": "The unit in which to display byte values", - "options": ["b", "k", "kb", "m", "mb", "g", "gb", "t", "tb", "p", "pb"] + "options": ["b", "kb", "mb", "gb", "tb", "pb"] }, "format": { "type": "string", + "default": "text", "description": "a short version of the Accept header, e.g. json, yaml" }, "h": { diff --git a/specification/_json_spec/cat.ml_datafeeds.json b/specification/_json_spec/cat.ml_datafeeds.json index cf93e18860..7f93d43b7d 100644 --- a/specification/_json_spec/cat.ml_datafeeds.json +++ b/specification/_json_spec/cat.ml_datafeeds.json @@ -35,6 +35,7 @@ }, "format": { "type": "string", + "default": "text", "description": "a short version of the Accept header, e.g. json, yaml" }, "h": { diff --git a/specification/_json_spec/cat.ml_jobs.json b/specification/_json_spec/cat.ml_jobs.json index 2fc433ec0d..0f770a244c 100644 --- a/specification/_json_spec/cat.ml_jobs.json +++ b/specification/_json_spec/cat.ml_jobs.json @@ -36,10 +36,11 @@ "bytes": { "type": "enum", "description": "The unit in which to display byte values", - "options": ["b", "k", "kb", "m", "mb", "g", "gb", "t", "tb", "p", "pb"] + "options": ["b", "kb", "mb", "gb", "tb", "pb"] }, "format": { "type": "string", + "default": "text", "description": "a short version of the Accept header, e.g. json, yaml" }, "h": { diff --git a/specification/_json_spec/cat.ml_trained_models.json b/specification/_json_spec/cat.ml_trained_models.json index b0a886ef6d..f851cb3d3f 100644 --- a/specification/_json_spec/cat.ml_trained_models.json +++ b/specification/_json_spec/cat.ml_trained_models.json @@ -47,10 +47,11 @@ "bytes": { "type": "enum", "description": "The unit in which to display byte values", - "options": ["b", "k", "kb", "m", "mb", "g", "gb", "t", "tb", "p", "pb"] + "options": ["b", "kb", "mb", "gb", "tb", "pb"] }, "format": { "type": "string", + "default": "text", "description": "a short version of the Accept header, e.g. json, yaml" }, "h": { diff --git a/specification/_json_spec/cat.nodeattrs.json b/specification/_json_spec/cat.nodeattrs.json index 6969153914..af1380a848 100644 --- a/specification/_json_spec/cat.nodeattrs.json +++ b/specification/_json_spec/cat.nodeattrs.json @@ -20,6 +20,7 @@ "params": { "format": { "type": "string", + "default": "text", "description": "a short version of the Accept header, e.g. json, yaml" }, "local": { diff --git a/specification/_json_spec/cat.nodes.json b/specification/_json_spec/cat.nodes.json index 64c2fce56f..93d805e389 100644 --- a/specification/_json_spec/cat.nodes.json +++ b/specification/_json_spec/cat.nodes.json @@ -21,10 +21,11 @@ "bytes": { "type": "enum", "description": "The unit in which to display byte values", - "options": ["b", "k", "kb", "m", "mb", "g", "gb", "t", "tb", "p", "pb"] + "options": ["b", "kb", "mb", "gb", "tb", "pb"] }, "format": { "type": "string", + "default": "text", "description": "a short version of the Accept header, e.g. json, yaml" }, "full_id": { diff --git a/specification/_json_spec/cat.pending_tasks.json b/specification/_json_spec/cat.pending_tasks.json index cfdc11ed0e..2fccfa4e07 100644 --- a/specification/_json_spec/cat.pending_tasks.json +++ b/specification/_json_spec/cat.pending_tasks.json @@ -20,6 +20,7 @@ "params": { "format": { "type": "string", + "default": "text", "description": "a short version of the Accept header, e.g. json, yaml" }, "local": { diff --git a/specification/_json_spec/cat.plugins.json b/specification/_json_spec/cat.plugins.json index d6b8f235dc..513547dcb1 100644 --- a/specification/_json_spec/cat.plugins.json +++ b/specification/_json_spec/cat.plugins.json @@ -20,6 +20,7 @@ "params": { "format": { "type": "string", + "default": "text", "description": "a short version of the Accept header, e.g. json, yaml" }, "local": { diff --git a/specification/_json_spec/cat.recovery.json b/specification/_json_spec/cat.recovery.json index 0c57424b5d..2f8f621de3 100644 --- a/specification/_json_spec/cat.recovery.json +++ b/specification/_json_spec/cat.recovery.json @@ -30,6 +30,7 @@ "params": { "format": { "type": "string", + "default": "text", "description": "a short version of the Accept header, e.g. json, yaml" }, "active_only": { @@ -40,7 +41,7 @@ "bytes": { "type": "enum", "description": "The unit in which to display byte values", - "options": ["b", "k", "kb", "m", "mb", "g", "gb", "t", "tb", "p", "pb"] + "options": ["b", "kb", "mb", "gb", "tb", "pb"] }, "detailed": { "type": "boolean", diff --git a/specification/_json_spec/cat.repositories.json b/specification/_json_spec/cat.repositories.json index cbaff36af0..4a3f2a5885 100644 --- a/specification/_json_spec/cat.repositories.json +++ b/specification/_json_spec/cat.repositories.json @@ -20,6 +20,7 @@ "params": { "format": { "type": "string", + "default": "text", "description": "a short version of the Accept header, e.g. json, yaml" }, "local": { diff --git a/specification/_json_spec/cat.segments.json b/specification/_json_spec/cat.segments.json index 854789c798..b1549979c1 100644 --- a/specification/_json_spec/cat.segments.json +++ b/specification/_json_spec/cat.segments.json @@ -30,6 +30,7 @@ "params": { "format": { "type": "string", + "default": "text", "description": "a short version of the Accept header, e.g. json, yaml" }, "local": { @@ -43,7 +44,7 @@ "bytes": { "type": "enum", "description": "The unit in which to display byte values", - "options": ["b", "k", "kb", "m", "mb", "g", "gb", "t", "tb", "p", "pb"] + "options": ["b", "kb", "mb", "gb", "tb", "pb"] }, "h": { "type": "list", diff --git a/specification/_json_spec/cat.shards.json b/specification/_json_spec/cat.shards.json index b3932074ef..4c82fe428a 100644 --- a/specification/_json_spec/cat.shards.json +++ b/specification/_json_spec/cat.shards.json @@ -30,12 +30,13 @@ "params": { "format": { "type": "string", + "default": "text", "description": "a short version of the Accept header, e.g. json, yaml" }, "bytes": { "type": "enum", "description": "The unit in which to display byte values", - "options": ["b", "k", "kb", "m", "mb", "g", "gb", "t", "tb", "p", "pb"] + "options": ["b", "kb", "mb", "gb", "tb", "pb"] }, "master_timeout": { "type": "time", diff --git a/specification/_json_spec/cat.snapshots.json b/specification/_json_spec/cat.snapshots.json index c90162ec01..2fb2bf3613 100644 --- a/specification/_json_spec/cat.snapshots.json +++ b/specification/_json_spec/cat.snapshots.json @@ -30,6 +30,7 @@ "params": { "format": { "type": "string", + "default": "text", "description": "a short version of the Accept header, e.g. json, yaml" }, "ignore_unavailable": { diff --git a/specification/_json_spec/cat.tasks.json b/specification/_json_spec/cat.tasks.json index a223f934ab..f8930f877d 100644 --- a/specification/_json_spec/cat.tasks.json +++ b/specification/_json_spec/cat.tasks.json @@ -20,6 +20,7 @@ "params": { "format": { "type": "string", + "default": "text", "description": "a short version of the Accept header, e.g. json, yaml" }, "nodes": { diff --git a/specification/_json_spec/cat.templates.json b/specification/_json_spec/cat.templates.json index bc7a8a7c29..a63252cae3 100644 --- a/specification/_json_spec/cat.templates.json +++ b/specification/_json_spec/cat.templates.json @@ -30,6 +30,7 @@ "params": { "format": { "type": "string", + "default": "text", "description": "a short version of the Accept header, e.g. json, yaml" }, "local": { diff --git a/specification/_json_spec/cat.thread_pool.json b/specification/_json_spec/cat.thread_pool.json index b72463f7f1..85372c6da8 100644 --- a/specification/_json_spec/cat.thread_pool.json +++ b/specification/_json_spec/cat.thread_pool.json @@ -30,6 +30,7 @@ "params": { "format": { "type": "string", + "default": "text", "description": "a short version of the Accept header, e.g. json, yaml" }, "time": { diff --git a/specification/_json_spec/cat.transforms.json b/specification/_json_spec/cat.transforms.json index 4f2800cffa..1f9e35fedc 100644 --- a/specification/_json_spec/cat.transforms.json +++ b/specification/_json_spec/cat.transforms.json @@ -45,6 +45,7 @@ }, "format": { "type": "string", + "default": "text", "description": "a short version of the Accept header, e.g. json, yaml" }, "h": { diff --git a/specification/_json_spec/msearch.json b/specification/_json_spec/msearch.json index 6197c3f004..5d21b655f3 100644 --- a/specification/_json_spec/msearch.json +++ b/specification/_json_spec/msearch.json @@ -44,7 +44,7 @@ }, "pre_filter_shard_size": { "type": "number", - "description": "A threshold that enforces a pre-filter roundtrip to prefilter search shards based on query rewriting if the number of shards the search request expands to exceeds the threshold. This filter roundtrip can limit the number of shards significantly if for instance a shard can not match any documents based on its rewrite method ie. if date filters are mandatory to match but the shard bounds and the query are disjoint." + "description": "A threshold that enforces a pre-filter roundtrip to prefilter search shards based on query rewriting if the number of shards the search request expands to exceeds the threshold. This filter roundtrip can limit the number of shards significantly if for instance a shard can not match any documents based on its rewrite method ie. if date filters are mandatory to match but the shard bounds and the query are disjoint." }, "max_concurrent_shard_requests": { "type": "number", diff --git a/specification/_json_spec/search.json b/specification/_json_spec/search.json index ec743c1cea..812ec3d40f 100644 --- a/specification/_json_spec/search.json +++ b/specification/_json_spec/search.json @@ -208,7 +208,7 @@ }, "pre_filter_shard_size": { "type": "number", - "description": "A threshold that enforces a pre-filter roundtrip to prefilter search shards based on query rewriting if the number of shards the search request expands to exceeds the threshold. This filter roundtrip can limit the number of shards significantly if for instance a shard can not match any documents based on its rewrite method ie. if date filters are mandatory to match but the shard bounds and the query are disjoint." + "description": "A threshold that enforces a pre-filter roundtrip to prefilter search shards based on query rewriting if the number of shards the search request expands to exceeds the threshold. This filter roundtrip can limit the number of shards significantly if for instance a shard can not match any documents based on its rewrite method ie. if date filters are mandatory to match but the shard bounds and the query are disjoint." }, "rest_total_hits_as_int": { "type": "boolean", diff --git a/specification/_json_spec/watcher.put_watch.json b/specification/_json_spec/watcher.put_watch.json index 495fa14a89..28b739d833 100644 --- a/specification/_json_spec/watcher.put_watch.json +++ b/specification/_json_spec/watcher.put_watch.json @@ -44,7 +44,7 @@ }, "body": { "description": "The watch", - "required": false + "required": true } } }