From cca7a523a243d407926c7369c229650686345eb6 Mon Sep 17 00:00:00 2001 From: =?UTF-8?q?Istv=C3=A1n=20Zolt=C3=A1n=20Szab=C3=B3?= Date: Wed, 27 Aug 2025 16:31:16 +0200 Subject: [PATCH] Fixes API examples (#5214) * Fixes API examples. * Format fix. (cherry picked from commit c134e028ece562aa6f5e9899501641fb9295f3ab) --- ...erPutComponentTemplateRequestExample1.yaml | 22 +++++++++---------- .../indicesPutTemplateRequestExample1.yaml | 12 +++++----- .../ReloadSearchAnalyzersRequestExample1.yaml | 14 ------------ ...ReloadSearchAnalyzersResponseExample1.yaml | 17 ++++++++++++++ 4 files changed, 34 insertions(+), 31 deletions(-) create mode 100644 specification/indices/reload_search_analyzers/examples/response/ReloadSearchAnalyzersResponseExample1.yaml diff --git a/specification/cluster/put_component_template/examples/request/ClusterPutComponentTemplateRequestExample1.yaml b/specification/cluster/put_component_template/examples/request/ClusterPutComponentTemplateRequestExample1.yaml index 1e8407935b..ba540b236d 100644 --- a/specification/cluster/put_component_template/examples/request/ClusterPutComponentTemplateRequestExample1.yaml +++ b/specification/cluster/put_component_template/examples/request/ClusterPutComponentTemplateRequestExample1.yaml @@ -4,14 +4,14 @@ method_request: PUT _component_template/template_1 # type: request value: template: - settings: - number_of_shards: 1 - mappings: - _source: - enabled: false - properties: - host_name: - type: keyword - created_at: - type: date - format: 'EEE MMM dd HH:mm:ss Z yyyy' + settings: + number_of_shards: 1 + mappings: + _source: + enabled: false + properties: + host_name: + type: keyword + created_at: + type: date + format: 'EEE MMM dd HH:mm:ss Z yyyy' diff --git a/specification/indices/put_template/examples/request/indicesPutTemplateRequestExample1.yaml b/specification/indices/put_template/examples/request/indicesPutTemplateRequestExample1.yaml index 227c451388..aa3a2bf52a 100644 --- a/specification/indices/put_template/examples/request/indicesPutTemplateRequestExample1.yaml +++ b/specification/indices/put_template/examples/request/indicesPutTemplateRequestExample1.yaml @@ -11,9 +11,9 @@ value: mappings: _source: enabled: false - properties: - host_name: - type: keyword - created_at: - type: date - format: 'EEE MMM dd HH:mm:ss Z yyyy' + properties: + host_name: + type: keyword + created_at: + type: date + format: 'EEE MMM dd HH:mm:ss Z yyyy' diff --git a/specification/indices/reload_search_analyzers/examples/request/ReloadSearchAnalyzersRequestExample1.yaml b/specification/indices/reload_search_analyzers/examples/request/ReloadSearchAnalyzersRequestExample1.yaml index 0c9fb35bf3..ca3f51e07c 100644 --- a/specification/indices/reload_search_analyzers/examples/request/ReloadSearchAnalyzersRequestExample1.yaml +++ b/specification/indices/reload_search_analyzers/examples/request/ReloadSearchAnalyzersRequestExample1.yaml @@ -1,15 +1 @@ -# summary: method_request: POST /my-index-000001/_reload_search_analyzers -# description: '' -# type: request -value: - _shards: - total: 2 - successful: 2 - failed: 0 - reload_details: - - index: my-index-000001 - reloaded_analyzers: - - my_synonyms - reloaded_node_ids: - - mfdqTXn_T7SGr2Ho2KT8uw diff --git a/specification/indices/reload_search_analyzers/examples/response/ReloadSearchAnalyzersResponseExample1.yaml b/specification/indices/reload_search_analyzers/examples/response/ReloadSearchAnalyzersResponseExample1.yaml new file mode 100644 index 0000000000..4c23bc6d1e --- /dev/null +++ b/specification/indices/reload_search_analyzers/examples/response/ReloadSearchAnalyzersResponseExample1.yaml @@ -0,0 +1,17 @@ +# summary: +description: A successful response when reloading a search analyzer of an index. +# type: response +# response_code: 200 +value: + template: + settings: + number_of_shards: 1 + mappings: + _source: + enabled: false + properties: + host_name: + type: keyword + created_at: + type: date + format: 'EEE MMM dd HH:mm:ss Z yyyy'