From ea7aac9ca46e3d0770e0c27063a569dbbd873d62 Mon Sep 17 00:00:00 2001 From: pquentin <42327+pquentin@users.noreply.github.com> Date: Thu, 18 Sep 2025 11:28:36 +0000 Subject: [PATCH] Update rest-api-spec --- output/schema/validation-errors.json | 116 ------------------ specification/_json_spec/cat.aliases.json | 10 ++ specification/_json_spec/cat.allocation.json | 5 + .../_json_spec/cat.component_templates.json | 10 ++ specification/_json_spec/cat.count.json | 10 ++ specification/_json_spec/cat.fielddata.json | 5 + specification/_json_spec/cat.health.json | 5 + specification/_json_spec/cat.master.json | 10 ++ .../_json_spec/cat.ml_datafeeds.json | 5 + specification/_json_spec/cat.nodeattrs.json | 10 ++ .../_json_spec/cat.pending_tasks.json | 5 + specification/_json_spec/cat.plugins.json | 10 ++ .../_json_spec/cat.repositories.json | 10 ++ specification/_json_spec/cat.segments.json | 5 + specification/_json_spec/cat.snapshots.json | 5 + specification/_json_spec/cat.tasks.json | 5 + specification/_json_spec/cat.templates.json | 10 ++ specification/_json_spec/cat.thread_pool.json | 5 + specification/_json_spec/cat.transforms.json | 5 + 19 files changed, 130 insertions(+), 116 deletions(-) diff --git a/output/schema/validation-errors.json b/output/schema/validation-errors.json index 05256be8e3..34717a8197 100644 --- a/output/schema/validation-errors.json +++ b/output/schema/validation-errors.json @@ -1,121 +1,5 @@ { "endpointErrors": { - "cat.aliases": { - "request": [ - "Request: query parameter 'bytes' does not exist in the json spec", - "Request: query parameter 'time' does not exist in the json spec" - ], - "response": [] - }, - "cat.allocation": { - "request": [ - "Request: query parameter 'time' does not exist in the json spec" - ], - "response": [] - }, - "cat.component_templates": { - "request": [ - "Request: query parameter 'bytes' does not exist in the json spec", - "Request: query parameter 'time' does not exist in the json spec" - ], - "response": [] - }, - "cat.count": { - "request": [ - "Request: query parameter 'bytes' does not exist in the json spec", - "Request: query parameter 'time' does not exist in the json spec" - ], - "response": [] - }, - "cat.fielddata": { - "request": [ - "Request: query parameter 'time' does not exist in the json spec" - ], - "response": [] - }, - "cat.health": { - "request": [ - "Request: query parameter 'bytes' does not exist in the json spec" - ], - "response": [] - }, - "cat.master": { - "request": [ - "Request: query parameter 'bytes' does not exist in the json spec", - "Request: query parameter 'time' does not exist in the json spec" - ], - "response": [] - }, - "cat.ml_datafeeds": { - "request": [ - "Request: query parameter 'bytes' does not exist in the json spec" - ], - "response": [] - }, - "cat.nodeattrs": { - "request": [ - "Request: query parameter 'bytes' does not exist in the json spec", - "Request: query parameter 'time' does not exist in the json spec" - ], - "response": [] - }, - "cat.pending_tasks": { - "request": [ - "Request: query parameter 'bytes' does not exist in the json spec" - ], - "response": [] - }, - "cat.plugins": { - "request": [ - "Request: query parameter 'bytes' does not exist in the json spec", - "Request: query parameter 'time' does not exist in the json spec" - ], - "response": [] - }, - "cat.repositories": { - "request": [ - "Request: query parameter 'bytes' does not exist in the json spec", - "Request: query parameter 'time' does not exist in the json spec" - ], - "response": [] - }, - "cat.segments": { - "request": [ - "Request: query parameter 'time' does not exist in the json spec" - ], - "response": [] - }, - "cat.snapshots": { - "request": [ - "Request: query parameter 'bytes' does not exist in the json spec" - ], - "response": [] - }, - "cat.tasks": { - "request": [ - "Request: query parameter 'bytes' does not exist in the json spec" - ], - "response": [] - }, - "cat.templates": { - "request": [ - "Request: query parameter 'bytes' does not exist in the json spec", - "Request: query parameter 'time' does not exist in the json spec" - ], - "response": [] - }, - "cat.thread_pool": { - "request": [ - "Request: query parameter 'bytes' does not exist in the json spec" - ], - "response": [] - }, - "cat.transforms": { - "request": [ - "Request: query parameter 'bytes' does not exist in the json spec" - ], - "response": [] - }, "streams.status": { "request": [ "Request: query parameter 'master_timeout' does not exist in the json spec", diff --git a/specification/_json_spec/cat.aliases.json b/specification/_json_spec/cat.aliases.json index e69f2abc0e..9fc78fd6fd 100644 --- a/specification/_json_spec/cat.aliases.json +++ b/specification/_json_spec/cat.aliases.json @@ -61,6 +61,16 @@ "type": "time", "default": "30s", "description": "Timeout for waiting for new cluster state in case it is blocked" + }, + "bytes": { + "type": "enum", + "description": "The unit in which to display byte values", + "options": ["b", "kb", "mb", "gb", "tb", "pb"] + }, + "time": { + "type": "enum", + "description": "The unit in which to display time values", + "options": ["d", "h", "m", "s", "ms", "micros", "nanos"] } } } diff --git a/specification/_json_spec/cat.allocation.json b/specification/_json_spec/cat.allocation.json index b8a5f1da01..e9619ba60d 100644 --- a/specification/_json_spec/cat.allocation.json +++ b/specification/_json_spec/cat.allocation.json @@ -38,6 +38,11 @@ "description": "The unit in which to display byte values", "options": ["b", "kb", "mb", "gb", "tb", "pb"] }, + "time": { + "type": "enum", + "description": "The unit in which to display time values", + "options": ["d", "h", "m", "s", "ms", "micros", "nanos"] + }, "local": { "type": "boolean", "description": "Return local information, do not retrieve the state from master node (default: false)" diff --git a/specification/_json_spec/cat.component_templates.json b/specification/_json_spec/cat.component_templates.json index d55bce0775..307d6bb2b1 100644 --- a/specification/_json_spec/cat.component_templates.json +++ b/specification/_json_spec/cat.component_templates.json @@ -59,6 +59,16 @@ "type": "boolean", "description": "Verbose mode. Display column headers", "default": false + }, + "bytes": { + "type": "enum", + "description": "The unit in which to display byte values", + "options": ["b", "kb", "mb", "gb", "tb", "pb"] + }, + "time": { + "type": "enum", + "description": "The unit in which to display time values", + "options": ["d", "h", "m", "s", "ms", "micros", "nanos"] } } } diff --git a/specification/_json_spec/cat.count.json b/specification/_json_spec/cat.count.json index ef88d10f74..fc77804834 100644 --- a/specification/_json_spec/cat.count.json +++ b/specification/_json_spec/cat.count.json @@ -50,6 +50,16 @@ "type": "boolean", "description": "Verbose mode. Display column headers", "default": false + }, + "bytes": { + "type": "enum", + "description": "The unit in which to display byte values", + "options": ["b", "kb", "mb", "gb", "tb", "pb"] + }, + "time": { + "type": "enum", + "description": "The unit in which to display time values", + "options": ["d", "h", "m", "s", "ms", "micros", "nanos"] } } } diff --git a/specification/_json_spec/cat.fielddata.json b/specification/_json_spec/cat.fielddata.json index 8630374a38..d99f49cfd0 100644 --- a/specification/_json_spec/cat.fielddata.json +++ b/specification/_json_spec/cat.fielddata.json @@ -59,6 +59,11 @@ "fields": { "type": "list", "description": "A comma-separated list of fields to return in the output" + }, + "time": { + "type": "enum", + "description": "The unit in which to display time values", + "options": ["d", "h", "m", "s", "ms", "micros", "nanos"] } } } diff --git a/specification/_json_spec/cat.health.json b/specification/_json_spec/cat.health.json index b540a6dc6a..2d421cbfbf 100644 --- a/specification/_json_spec/cat.health.json +++ b/specification/_json_spec/cat.health.json @@ -50,6 +50,11 @@ "type": "boolean", "description": "Verbose mode. Display column headers", "default": false + }, + "bytes": { + "type": "enum", + "description": "The unit in which to display byte values", + "options": ["b", "kb", "mb", "gb", "tb", "pb"] } } } diff --git a/specification/_json_spec/cat.master.json b/specification/_json_spec/cat.master.json index 2fa72a5201..beba459f17 100644 --- a/specification/_json_spec/cat.master.json +++ b/specification/_json_spec/cat.master.json @@ -49,6 +49,16 @@ "type": "boolean", "description": "Verbose mode. Display column headers", "default": false + }, + "bytes": { + "type": "enum", + "description": "The unit in which to display byte values", + "options": ["b", "kb", "mb", "gb", "tb", "pb"] + }, + "time": { + "type": "enum", + "description": "The unit in which to display time values", + "options": ["d", "h", "m", "s", "ms", "micros", "nanos"] } } } diff --git a/specification/_json_spec/cat.ml_datafeeds.json b/specification/_json_spec/cat.ml_datafeeds.json index 72e0edd2ff..3cc24754f3 100644 --- a/specification/_json_spec/cat.ml_datafeeds.json +++ b/specification/_json_spec/cat.ml_datafeeds.json @@ -59,6 +59,11 @@ "type": "boolean", "description": "Verbose mode. Display column headers", "default": false + }, + "bytes": { + "type": "enum", + "description": "The unit in which to display byte values", + "options": ["b", "kb", "mb", "gb", "tb", "pb"] } } } diff --git a/specification/_json_spec/cat.nodeattrs.json b/specification/_json_spec/cat.nodeattrs.json index 88760181fa..1f6931aa5a 100644 --- a/specification/_json_spec/cat.nodeattrs.json +++ b/specification/_json_spec/cat.nodeattrs.json @@ -49,6 +49,16 @@ "type": "boolean", "description": "Verbose mode. Display column headers", "default": false + }, + "bytes": { + "type": "enum", + "description": "The unit in which to display byte values", + "options": ["b", "kb", "mb", "gb", "tb", "pb"] + }, + "time": { + "type": "enum", + "description": "The unit in which to display time values", + "options": ["d", "h", "m", "s", "ms", "micros", "nanos"] } } } diff --git a/specification/_json_spec/cat.pending_tasks.json b/specification/_json_spec/cat.pending_tasks.json index 4b1df07146..a2bb597fc9 100644 --- a/specification/_json_spec/cat.pending_tasks.json +++ b/specification/_json_spec/cat.pending_tasks.json @@ -54,6 +54,11 @@ "type": "boolean", "description": "Verbose mode. Display column headers", "default": false + }, + "bytes": { + "type": "enum", + "description": "The unit in which to display byte values", + "options": ["b", "kb", "mb", "gb", "tb", "pb"] } } } diff --git a/specification/_json_spec/cat.plugins.json b/specification/_json_spec/cat.plugins.json index b854e3827b..05ae6a49be 100644 --- a/specification/_json_spec/cat.plugins.json +++ b/specification/_json_spec/cat.plugins.json @@ -54,6 +54,16 @@ "type": "boolean", "description": "Verbose mode. Display column headers", "default": false + }, + "bytes": { + "type": "enum", + "description": "The unit in which to display byte values", + "options": ["b", "kb", "mb", "gb", "tb", "pb"] + }, + "time": { + "type": "enum", + "description": "The unit in which to display time values", + "options": ["d", "h", "m", "s", "ms", "micros", "nanos"] } } } diff --git a/specification/_json_spec/cat.repositories.json b/specification/_json_spec/cat.repositories.json index 351ad25d5c..7a86196778 100644 --- a/specification/_json_spec/cat.repositories.json +++ b/specification/_json_spec/cat.repositories.json @@ -50,6 +50,16 @@ "type": "boolean", "description": "Verbose mode. Display column headers", "default": false + }, + "bytes": { + "type": "enum", + "description": "The unit in which to display byte values", + "options": ["b", "kb", "mb", "gb", "tb", "pb"] + }, + "time": { + "type": "enum", + "description": "The unit in which to display time values", + "options": ["d", "h", "m", "s", "ms", "micros", "nanos"] } } } diff --git a/specification/_json_spec/cat.segments.json b/specification/_json_spec/cat.segments.json index d53ca6e160..b8848a5c0f 100644 --- a/specification/_json_spec/cat.segments.json +++ b/specification/_json_spec/cat.segments.json @@ -64,6 +64,11 @@ "type": "boolean", "description": "Verbose mode. Display column headers", "default": false + }, + "time": { + "type": "enum", + "description": "The unit in which to display time values", + "options": ["d", "h", "m", "s", "ms", "micros", "nanos"] } } } diff --git a/specification/_json_spec/cat.snapshots.json b/specification/_json_spec/cat.snapshots.json index 1d81a26025..78bad84c22 100644 --- a/specification/_json_spec/cat.snapshots.json +++ b/specification/_json_spec/cat.snapshots.json @@ -65,6 +65,11 @@ "type": "boolean", "description": "Verbose mode. Display column headers", "default": false + }, + "bytes": { + "type": "enum", + "description": "The unit in which to display byte values", + "options": ["b", "kb", "mb", "gb", "tb", "pb"] } } } diff --git a/specification/_json_spec/cat.tasks.json b/specification/_json_spec/cat.tasks.json index 5cd7e43330..94c54e9194 100644 --- a/specification/_json_spec/cat.tasks.json +++ b/specification/_json_spec/cat.tasks.json @@ -71,6 +71,11 @@ "type": "boolean", "default": false, "description": "If `true`, the request blocks until the task has completed." + }, + "bytes": { + "type": "enum", + "description": "The unit in which to display byte values", + "options": ["b", "kb", "mb", "gb", "tb", "pb"] } } } diff --git a/specification/_json_spec/cat.templates.json b/specification/_json_spec/cat.templates.json index a581fe3070..2adf171932 100644 --- a/specification/_json_spec/cat.templates.json +++ b/specification/_json_spec/cat.templates.json @@ -59,6 +59,16 @@ "type": "boolean", "description": "Verbose mode. Display column headers", "default": false + }, + "bytes": { + "type": "enum", + "description": "The unit in which to display byte values", + "options": ["b", "kb", "mb", "gb", "tb", "pb"] + }, + "time": { + "type": "enum", + "description": "The unit in which to display time values", + "options": ["d", "h", "m", "s", "ms", "micros", "nanos"] } } } diff --git a/specification/_json_spec/cat.thread_pool.json b/specification/_json_spec/cat.thread_pool.json index e5cb025867..2ddcccd6a1 100644 --- a/specification/_json_spec/cat.thread_pool.json +++ b/specification/_json_spec/cat.thread_pool.json @@ -64,6 +64,11 @@ "type": "boolean", "description": "Verbose mode. Display column headers", "default": false + }, + "bytes": { + "type": "enum", + "description": "The unit in which to display byte values", + "options": ["b", "kb", "mb", "gb", "tb", "pb"] } } } diff --git a/specification/_json_spec/cat.transforms.json b/specification/_json_spec/cat.transforms.json index ef1f631fae..dba1ce927d 100644 --- a/specification/_json_spec/cat.transforms.json +++ b/specification/_json_spec/cat.transforms.json @@ -67,6 +67,11 @@ "type": "boolean", "description": "Verbose mode. Display column headers", "default": false + }, + "bytes": { + "type": "enum", + "description": "The unit in which to display byte values", + "options": ["b", "kb", "mb", "gb", "tb", "pb"] } } }