diff --git a/compiler/package-lock.json b/compiler/package-lock.json index ed183152ca..56c687fd0d 100644 --- a/compiler/package-lock.json +++ b/compiler/package-lock.json @@ -33,6 +33,10 @@ "node": ">=14" } }, + "../compiler-rs/compiler-wasm-lib/pkg": { + "name": "compiler-wasm-lib", + "version": "0.1.0" + }, "node_modules/@babel/code-frame": { "version": "7.12.11", "resolved": "https://registry.npmjs.org/@babel/code-frame/-/code-frame-7.12.11.tgz", @@ -1540,8 +1544,8 @@ "dev": true }, "node_modules/compiler-wasm-lib": { - "version": "0.1.0", - "resolved": "file:../compiler-rs/compiler-wasm-lib/pkg" + "resolved": "../compiler-rs/compiler-wasm-lib/pkg", + "link": true }, "node_modules/concat-map": { "version": "0.0.1", @@ -6484,7 +6488,7 @@ "dev": true }, "compiler-wasm-lib": { - "version": "0.1.0" + "version": "file:../compiler-rs/compiler-wasm-lib/pkg" }, "concat-map": { "version": "0.0.1", diff --git a/output/schema/validation-errors.json b/output/schema/validation-errors.json index c715448a11..95528c555c 100644 --- a/output/schema/validation-errors.json +++ b/output/schema/validation-errors.json @@ -43,6 +43,12 @@ ], "response": [] }, + "bulk": { + "request": [ + "Request: missing json spec query parameter 'type'" + ], + "response": [] + }, "capabilities": { "request": [ "Missing request & response" @@ -298,6 +304,47 @@ ], "response": [] }, + "ilm.delete_lifecycle": { + "request": [ + "Request: query parameter 'master_timeout' does not exist in the json spec", + "Request: query parameter 'timeout' does not exist in the json spec" + ], + "response": [] + }, + "ilm.explain_lifecycle": { + "request": [ + "Request: query parameter 'master_timeout' does not exist in the json spec" + ], + "response": [] + }, + "ilm.get_lifecycle": { + "request": [ + "Request: query parameter 'master_timeout' does not exist in the json spec", + "Request: query parameter 'timeout' does not exist in the json spec" + ], + "response": [] + }, + "ilm.put_lifecycle": { + "request": [ + "Request: query parameter 'master_timeout' does not exist in the json spec", + "Request: query parameter 'timeout' does not exist in the json spec" + ], + "response": [] + }, + "ilm.start": { + "request": [ + "Request: query parameter 'master_timeout' does not exist in the json spec", + "Request: query parameter 'timeout' does not exist in the json spec" + ], + "response": [] + }, + "ilm.stop": { + "request": [ + "Request: query parameter 'master_timeout' does not exist in the json spec", + "Request: query parameter 'timeout' does not exist in the json spec" + ], + "response": [] + }, "index": { "request": [ "Request: missing json spec query parameter 'require_data_stream'" @@ -349,8 +396,7 @@ }, "indices.rollover": { "request": [ - "Request: missing json spec query parameter 'lazy'", - "Request: missing json spec query parameter 'target_failure_store'" + "Request: missing json spec query parameter 'lazy'" ], "response": [] }, @@ -367,17 +413,44 @@ ], "response": [] }, + "ingest.delete_geoip_database": { + "request": [ + "Request: query parameter 'master_timeout' does not exist in the json spec", + "Request: query parameter 'timeout' does not exist in the json spec" + ], + "response": [] + }, + "ingest.delete_ip_location_database": { + "request": [ + "Request: query parameter 'master_timeout' does not exist in the json spec", + "Request: query parameter 'timeout' does not exist in the json spec" + ], + "response": [] + }, "ingest.get_ip_location_database": { "request": [ "Request: query parameter 'master_timeout' does not exist in the json spec" ], "response": [] }, + "ingest.put_geoip_database": { + "request": [ + "Request: query parameter 'master_timeout' does not exist in the json spec", + "Request: query parameter 'timeout' does not exist in the json spec" + ], + "response": [] + }, + "ingest.put_ip_location_database": { + "request": [ + "Request: query parameter 'master_timeout' does not exist in the json spec", + "Request: query parameter 'timeout' does not exist in the json spec" + ], + "response": [] + }, "license.post_start_trial": { "request": [ "Request: query parameter 'type_query_string' does not exist in the json spec", - "Request: missing json spec query parameter 'type'", - "Request: missing json spec query parameter 'timeout'" + "Request: missing json spec query parameter 'type'" ], "response": [] }, @@ -468,20 +541,6 @@ ], "response": [] }, - "shutdown.delete_node": { - "request": [ - "Request: query parameter 'master_timeout' does not exist in the json spec", - "Request: query parameter 'timeout' does not exist in the json spec" - ], - "response": [] - }, - "shutdown.put_node": { - "request": [ - "Request: query parameter 'master_timeout' does not exist in the json spec", - "Request: query parameter 'timeout' does not exist in the json spec" - ], - "response": [] - }, "snapshot.delete": { "request": [ "Request: missing json spec query parameter 'wait_for_completion'" @@ -517,7 +576,6 @@ }, "xpack.info": { "request": [ - "Request: query parameter 'human' does not exist in the json spec", "request definition xpack.info:Request / query - Property 'human' is already defined in an ancestor class" ], "response": [] diff --git a/specification/_json_spec/bulk.json b/specification/_json_spec/bulk.json index 3444e1c017..59e79d0684 100644 --- a/specification/_json_spec/bulk.json +++ b/specification/_json_spec/bulk.json @@ -46,6 +46,10 @@ "type": "time", "description": "Explicit operation timeout" }, + "type": { + "type": "string", + "description": "Default document type for items which don't provide one" + }, "_source": { "type": "list", "description": "True or false to return the _source field or not, or default list of fields to return, can be overridden on each sub-request" @@ -64,11 +68,11 @@ }, "require_alias": { "type": "boolean", - "description": "If true, the request’s actions must target an index alias. Defaults to false." + "description": "Sets require_alias for all incoming documents. Defaults to unset (false)" }, "require_data_stream": { "type": "boolean", - "description": "If true, the request's actions must target a data stream (existing or to-be-created). Default to false" + "description": "When true, requires the destination to be a data stream (existing or to-be-created). Default is false" }, "list_executed_pipelines": { "type": "boolean", diff --git a/specification/_json_spec/ilm.delete_lifecycle.json b/specification/_json_spec/ilm.delete_lifecycle.json index 32f55522b0..d3e83b77b3 100644 --- a/specification/_json_spec/ilm.delete_lifecycle.json +++ b/specification/_json_spec/ilm.delete_lifecycle.json @@ -23,15 +23,6 @@ } ] }, - "params": { - "master_timeout": { - "type": "time", - "description": "Explicit operation timeout for connection to master node" - }, - "timeout": { - "type": "time", - "description": "Explicit operation timeout" - } - } + "params": {} } } diff --git a/specification/_json_spec/ilm.explain_lifecycle.json b/specification/_json_spec/ilm.explain_lifecycle.json index 76a815e79b..993c9fc0c8 100644 --- a/specification/_json_spec/ilm.explain_lifecycle.json +++ b/specification/_json_spec/ilm.explain_lifecycle.json @@ -31,10 +31,6 @@ "only_errors": { "type": "boolean", "description": "filters the indices included in the response to ones in an ILM error state, implies only_managed" - }, - "master_timeout": { - "type": "time", - "description": "Explicit operation timeout for connection to master node" } } } diff --git a/specification/_json_spec/ilm.get_lifecycle.json b/specification/_json_spec/ilm.get_lifecycle.json index 44c3ea878c..1e5037edb9 100644 --- a/specification/_json_spec/ilm.get_lifecycle.json +++ b/specification/_json_spec/ilm.get_lifecycle.json @@ -27,15 +27,6 @@ } ] }, - "params": { - "master_timeout": { - "type": "time", - "description": "Explicit operation timeout for connection to master node" - }, - "timeout": { - "type": "time", - "description": "Explicit operation timeout" - } - } + "params": {} } } diff --git a/specification/_json_spec/ilm.put_lifecycle.json b/specification/_json_spec/ilm.put_lifecycle.json index 381956a35c..2ae9227811 100644 --- a/specification/_json_spec/ilm.put_lifecycle.json +++ b/specification/_json_spec/ilm.put_lifecycle.json @@ -24,16 +24,7 @@ } ] }, - "params": { - "master_timeout": { - "type": "time", - "description": "Explicit operation timeout for connection to master node" - }, - "timeout": { - "type": "time", - "description": "Explicit operation timeout" - } - }, + "params": {}, "body": { "description": "The lifecycle policy definition to register" } diff --git a/specification/_json_spec/ilm.start.json b/specification/_json_spec/ilm.start.json index 893c8c98ba..722ad25ee2 100644 --- a/specification/_json_spec/ilm.start.json +++ b/specification/_json_spec/ilm.start.json @@ -17,15 +17,6 @@ } ] }, - "params": { - "master_timeout": { - "type": "time", - "description": "Explicit operation timeout for connection to master node" - }, - "timeout": { - "type": "time", - "description": "Explicit operation timeout" - } - } + "params": {} } } diff --git a/specification/_json_spec/ilm.stop.json b/specification/_json_spec/ilm.stop.json index b60cd2223d..7a9643962a 100644 --- a/specification/_json_spec/ilm.stop.json +++ b/specification/_json_spec/ilm.stop.json @@ -17,15 +17,6 @@ } ] }, - "params": { - "master_timeout": { - "type": "time", - "description": "Explicit operation timeout for connection to master node" - }, - "timeout": { - "type": "time", - "description": "Explicit operation timeout" - } - } + "params": {} } } diff --git a/specification/_json_spec/indices.rollover.json b/specification/_json_spec/indices.rollover.json index 82b726f99c..58d14ad627 100644 --- a/specification/_json_spec/indices.rollover.json +++ b/specification/_json_spec/indices.rollover.json @@ -59,12 +59,6 @@ "type": "boolean", "default": "false", "description": "If set to true, the rollover action will only mark a data stream to signal that it needs to be rolled over at the next write. Only allowed on data streams." - }, - "target_failure_store": { - "type": "boolean", - "description": "If set to true, the rollover action will be applied on the failure store of the data stream.", - "visibility": "feature_flag", - "feature_flag": "es.failure_store_feature_flag_enabled" } }, "body": { diff --git a/specification/_json_spec/ingest.delete_geoip_database.json b/specification/_json_spec/ingest.delete_geoip_database.json index d56019cf4f..ce4d2b7173 100644 --- a/specification/_json_spec/ingest.delete_geoip_database.json +++ b/specification/_json_spec/ingest.delete_geoip_database.json @@ -23,15 +23,6 @@ } ] }, - "params": { - "master_timeout": { - "type": "time", - "description": "Explicit operation timeout for connection to master node" - }, - "timeout": { - "type": "time", - "description": "Explicit operation timeout" - } - } + "params": {} } } diff --git a/specification/_json_spec/ingest.delete_ip_location_database.json b/specification/_json_spec/ingest.delete_ip_location_database.json index 427cbe9817..629ea86961 100644 --- a/specification/_json_spec/ingest.delete_ip_location_database.json +++ b/specification/_json_spec/ingest.delete_ip_location_database.json @@ -23,15 +23,6 @@ } ] }, - "params": { - "master_timeout": { - "type": "time", - "description": "Explicit operation timeout for connection to master node" - }, - "timeout": { - "type": "time", - "description": "Explicit operation timeout" - } - } + "params": {} } } diff --git a/specification/_json_spec/ingest.put_geoip_database.json b/specification/_json_spec/ingest.put_geoip_database.json index c732652c34..f27c28fd73 100644 --- a/specification/_json_spec/ingest.put_geoip_database.json +++ b/specification/_json_spec/ingest.put_geoip_database.json @@ -24,16 +24,7 @@ } ] }, - "params": { - "master_timeout": { - "type": "time", - "description": "Explicit operation timeout for connection to master node" - }, - "timeout": { - "type": "time", - "description": "Explicit operation timeout" - } - }, + "params": {}, "body": { "description": "The database configuration definition", "required": true diff --git a/specification/_json_spec/ingest.put_ip_location_database.json b/specification/_json_spec/ingest.put_ip_location_database.json index 87a2adab72..b10e290bd4 100644 --- a/specification/_json_spec/ingest.put_ip_location_database.json +++ b/specification/_json_spec/ingest.put_ip_location_database.json @@ -24,16 +24,7 @@ } ] }, - "params": { - "master_timeout": { - "type": "time", - "description": "Explicit operation timeout for connection to master node" - }, - "timeout": { - "type": "time", - "description": "Explicit operation timeout" - } - }, + "params": {}, "body": { "description": "The database configuration definition", "required": true diff --git a/specification/_json_spec/license.post_start_trial.json b/specification/_json_spec/license.post_start_trial.json index 676709db4e..b256612b33 100644 --- a/specification/_json_spec/license.post_start_trial.json +++ b/specification/_json_spec/license.post_start_trial.json @@ -29,10 +29,6 @@ "master_timeout": { "type": "time", "description": "Timeout for processing on master node" - }, - "timeout": { - "type": "time", - "description": "Timeout for acknowledgement of update from all nodes in cluster" } } } diff --git a/specification/_json_spec/migrate.cancel_reindex.json b/specification/_json_spec/migrate.cancel_reindex.json index 6ab0ee44eb..660bd47272 100644 --- a/specification/_json_spec/migrate.cancel_reindex.json +++ b/specification/_json_spec/migrate.cancel_reindex.json @@ -2,7 +2,7 @@ "migrate.cancel_reindex": { "documentation": { "url": "https://www.elastic.co/guide/en/elasticsearch/reference/master/data-stream-reindex.html", - "description": "This API cancels migration reindex attempt for a data stream or index" + "description": "This API returns the status of a migration reindex attempt for a data stream or index" }, "stability": "experimental", "visibility": "private", diff --git a/specification/_json_spec/migrate.create_from.json b/specification/_json_spec/migrate.create_from.json index edb5037f66..e0d31a2e4c 100644 --- a/specification/_json_spec/migrate.create_from.json +++ b/specification/_json_spec/migrate.create_from.json @@ -29,7 +29,7 @@ ] }, "body": { - "description": "The body contains the fields `mappings_override` and `settings_override`.", + "description": "The body contains the fields `mappings_override`, `settings_override`, and `remove_index_blocks`.", "required": false } } diff --git a/specification/_json_spec/migrate.reindex.json b/specification/_json_spec/migrate.reindex.json index 2736f7ecd7..ae2e6a8f8a 100644 --- a/specification/_json_spec/migrate.reindex.json +++ b/specification/_json_spec/migrate.reindex.json @@ -19,7 +19,7 @@ ] }, "body": { - "description": "The body contains the fields `mode` and `source.index`, where the only mode currently supported is `upgrade`, and the `source.index` must be a data stream name", + "description": "The body contains the fields `mode` and `source.index, where the only mode currently supported is `upgrade`, and the `source.index` must be a data stream name", "required": true } } diff --git a/specification/_json_spec/shutdown.delete_node.json b/specification/_json_spec/shutdown.delete_node.json index c8e2b8856b..d6c6551340 100644 --- a/specification/_json_spec/shutdown.delete_node.json +++ b/specification/_json_spec/shutdown.delete_node.json @@ -24,6 +24,15 @@ } ] }, - "params": {} + "params": { + "master_timeout": { + "type": "time", + "description": "Explicit operation timeout for connection to master node" + }, + "timeout": { + "type": "time", + "description": "Explicit operation timeout" + } + } } } diff --git a/specification/_json_spec/shutdown.put_node.json b/specification/_json_spec/shutdown.put_node.json index 3aa5f1b0c7..b0e29899e1 100644 --- a/specification/_json_spec/shutdown.put_node.json +++ b/specification/_json_spec/shutdown.put_node.json @@ -24,7 +24,16 @@ } ] }, - "params": {}, + "params": { + "master_timeout": { + "type": "time", + "description": "Explicit operation timeout for connection to master node" + }, + "timeout": { + "type": "time", + "description": "Explicit operation timeout" + } + }, "body": { "description": "The shutdown type definition to register", "required": true diff --git a/specification/_json_spec/xpack.info.json b/specification/_json_spec/xpack.info.json index 730b492601..d98ff6563b 100644 --- a/specification/_json_spec/xpack.info.json +++ b/specification/_json_spec/xpack.info.json @@ -18,6 +18,12 @@ ] }, "params": { + "human": { + "type": "boolean", + "required": false, + "description": "Defines whether additional human-readable information is included in the response. In particular, it adds descriptions and a tag line. The default value is true.", + "default": true + }, "categories": { "type": "list", "description": "Comma-separated list of info categories. Can be any of: build, license, features"