From 37edfacd09ee2b65fd587af57ebcf0413c6e7630 Mon Sep 17 00:00:00 2001 From: Quentin Pradet Date: Mon, 17 Nov 2025 11:39:52 +0400 Subject: [PATCH] rest-api-spec: mark all routing values as list (#137673) This means that comma-separate values are allowed. --- rest-api-spec/src/main/resources/rest-api-spec/api/bulk.json | 2 +- rest-api-spec/src/main/resources/rest-api-spec/api/create.json | 2 +- rest-api-spec/src/main/resources/rest-api-spec/api/delete.json | 2 +- rest-api-spec/src/main/resources/rest-api-spec/api/exists.json | 2 +- .../src/main/resources/rest-api-spec/api/exists_source.json | 2 +- rest-api-spec/src/main/resources/rest-api-spec/api/explain.json | 2 +- rest-api-spec/src/main/resources/rest-api-spec/api/get.json | 2 +- .../src/main/resources/rest-api-spec/api/get_source.json | 2 +- .../src/main/resources/rest-api-spec/api/graph.explore.json | 2 +- rest-api-spec/src/main/resources/rest-api-spec/api/index.json | 2 +- rest-api-spec/src/main/resources/rest-api-spec/api/mget.json | 2 +- .../src/main/resources/rest-api-spec/api/mtermvectors.json | 2 +- .../main/resources/rest-api-spec/api/open_point_in_time.json | 2 +- .../src/main/resources/rest-api-spec/api/search_shards.json | 2 +- .../src/main/resources/rest-api-spec/api/termvectors.json | 2 +- rest-api-spec/src/main/resources/rest-api-spec/api/update.json | 2 +- 16 files changed, 16 insertions(+), 16 deletions(-) diff --git a/rest-api-spec/src/main/resources/rest-api-spec/api/bulk.json b/rest-api-spec/src/main/resources/rest-api-spec/api/bulk.json index c6aa41ee42499..75f4bd6e8786b 100644 --- a/rest-api-spec/src/main/resources/rest-api-spec/api/bulk.json +++ b/rest-api-spec/src/main/resources/rest-api-spec/api/bulk.json @@ -55,7 +55,7 @@ "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." }, "routing": { - "type": "string", + "type": "list", "description": "Specific routing value" }, "timeout": { diff --git a/rest-api-spec/src/main/resources/rest-api-spec/api/create.json b/rest-api-spec/src/main/resources/rest-api-spec/api/create.json index aac043430ae41..40e6f281edab5 100644 --- a/rest-api-spec/src/main/resources/rest-api-spec/api/create.json +++ b/rest-api-spec/src/main/resources/rest-api-spec/api/create.json @@ -52,7 +52,7 @@ "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." }, "routing": { - "type": "string", + "type": "list", "description": "Specific routing value" }, "timeout": { diff --git a/rest-api-spec/src/main/resources/rest-api-spec/api/delete.json b/rest-api-spec/src/main/resources/rest-api-spec/api/delete.json index 11b0ac6360acc..e58d6d0417fe8 100644 --- a/rest-api-spec/src/main/resources/rest-api-spec/api/delete.json +++ b/rest-api-spec/src/main/resources/rest-api-spec/api/delete.json @@ -48,7 +48,7 @@ "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." }, "routing": { - "type": "string", + "type": "list", "description": "Specific routing value" }, "timeout": { diff --git a/rest-api-spec/src/main/resources/rest-api-spec/api/exists.json b/rest-api-spec/src/main/resources/rest-api-spec/api/exists.json index 3198e01a27738..86f3202716114 100644 --- a/rest-api-spec/src/main/resources/rest-api-spec/api/exists.json +++ b/rest-api-spec/src/main/resources/rest-api-spec/api/exists.json @@ -51,7 +51,7 @@ "description": "Refresh the shard containing the document before performing the operation" }, "routing": { - "type": "string", + "type": "list", "description": "Specific routing value" }, "_source": { diff --git a/rest-api-spec/src/main/resources/rest-api-spec/api/exists_source.json b/rest-api-spec/src/main/resources/rest-api-spec/api/exists_source.json index a4afc9628cc65..9ac8c4f3a3658 100644 --- a/rest-api-spec/src/main/resources/rest-api-spec/api/exists_source.json +++ b/rest-api-spec/src/main/resources/rest-api-spec/api/exists_source.json @@ -47,7 +47,7 @@ "description": "Refresh the shard containing the document before performing the operation" }, "routing": { - "type": "string", + "type": "list", "description": "Specific routing value" }, "_source": { diff --git a/rest-api-spec/src/main/resources/rest-api-spec/api/explain.json b/rest-api-spec/src/main/resources/rest-api-spec/api/explain.json index dfcf18c3e4713..5e386976e256a 100644 --- a/rest-api-spec/src/main/resources/rest-api-spec/api/explain.json +++ b/rest-api-spec/src/main/resources/rest-api-spec/api/explain.json @@ -76,7 +76,7 @@ "description": "Query in the Lucene query string syntax" }, "routing": { - "type": "string", + "type": "list", "description": "Specific routing value" }, "_source": { diff --git a/rest-api-spec/src/main/resources/rest-api-spec/api/get.json b/rest-api-spec/src/main/resources/rest-api-spec/api/get.json index 916f830133711..e97a8ae454c59 100644 --- a/rest-api-spec/src/main/resources/rest-api-spec/api/get.json +++ b/rest-api-spec/src/main/resources/rest-api-spec/api/get.json @@ -57,7 +57,7 @@ "description": "Refresh the shard containing the document before performing the operation" }, "routing": { - "type": "string", + "type": "list", "description": "Specific routing value" }, "_source": { diff --git a/rest-api-spec/src/main/resources/rest-api-spec/api/get_source.json b/rest-api-spec/src/main/resources/rest-api-spec/api/get_source.json index 2e0bed34f44f6..fc49104247c63 100644 --- a/rest-api-spec/src/main/resources/rest-api-spec/api/get_source.json +++ b/rest-api-spec/src/main/resources/rest-api-spec/api/get_source.json @@ -47,7 +47,7 @@ "description": "Refresh the shard containing the document before performing the operation" }, "routing": { - "type": "string", + "type": "list", "description": "Specific routing value" }, "_source": { diff --git a/rest-api-spec/src/main/resources/rest-api-spec/api/graph.explore.json b/rest-api-spec/src/main/resources/rest-api-spec/api/graph.explore.json index f96205e56af1e..22d904ee5f123 100644 --- a/rest-api-spec/src/main/resources/rest-api-spec/api/graph.explore.json +++ b/rest-api-spec/src/main/resources/rest-api-spec/api/graph.explore.json @@ -33,7 +33,7 @@ }, "params": { "routing": { - "type": "string", + "type": "list", "description": "Specific routing value" }, "timeout": { diff --git a/rest-api-spec/src/main/resources/rest-api-spec/api/index.json b/rest-api-spec/src/main/resources/rest-api-spec/api/index.json index 73613998d32c5..eef81445afc8e 100644 --- a/rest-api-spec/src/main/resources/rest-api-spec/api/index.json +++ b/rest-api-spec/src/main/resources/rest-api-spec/api/index.json @@ -72,7 +72,7 @@ "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." }, "routing": { - "type": "string", + "type": "list", "description": "Specific routing value" }, "timeout": { diff --git a/rest-api-spec/src/main/resources/rest-api-spec/api/mget.json b/rest-api-spec/src/main/resources/rest-api-spec/api/mget.json index 49b9d5fc59547..fadad672d7e6f 100644 --- a/rest-api-spec/src/main/resources/rest-api-spec/api/mget.json +++ b/rest-api-spec/src/main/resources/rest-api-spec/api/mget.json @@ -65,7 +65,7 @@ "description": "Refresh the shard containing the document before performing the operation" }, "routing": { - "type": "string", + "type": "list", "description": "Specific routing value" }, "_source": { diff --git a/rest-api-spec/src/main/resources/rest-api-spec/api/mtermvectors.json b/rest-api-spec/src/main/resources/rest-api-spec/api/mtermvectors.json index a139b8370293d..b980a3d1ecb4b 100644 --- a/rest-api-spec/src/main/resources/rest-api-spec/api/mtermvectors.json +++ b/rest-api-spec/src/main/resources/rest-api-spec/api/mtermvectors.json @@ -77,7 +77,7 @@ "description": "Specify the node or shard the operation should be performed on (default: random) .Applies to all returned documents unless otherwise specified in body \"params\" or \"docs\"." }, "routing": { - "type": "string", + "type": "list", "description": "Specific routing value. Applies to all returned documents unless otherwise specified in body \"params\" or \"docs\"." }, "realtime": { diff --git a/rest-api-spec/src/main/resources/rest-api-spec/api/open_point_in_time.json b/rest-api-spec/src/main/resources/rest-api-spec/api/open_point_in_time.json index 34cba7ed97796..200611f97d212 100644 --- a/rest-api-spec/src/main/resources/rest-api-spec/api/open_point_in_time.json +++ b/rest-api-spec/src/main/resources/rest-api-spec/api/open_point_in_time.json @@ -36,7 +36,7 @@ "description": "Specify the node or shard the operation should be performed on (default: random)" }, "routing": { - "type": "string", + "type": "list", "description": "Specific routing value" }, "ignore_unavailable": { diff --git a/rest-api-spec/src/main/resources/rest-api-spec/api/search_shards.json b/rest-api-spec/src/main/resources/rest-api-spec/api/search_shards.json index a61cf1ca1a832..e5345a6b5ecd3 100644 --- a/rest-api-spec/src/main/resources/rest-api-spec/api/search_shards.json +++ b/rest-api-spec/src/main/resources/rest-api-spec/api/search_shards.json @@ -41,7 +41,7 @@ "description": "Specify the node or shard the operation should be performed on (default: random)" }, "routing": { - "type": "string", + "type": "list", "description": "Specific routing value" }, "local": { diff --git a/rest-api-spec/src/main/resources/rest-api-spec/api/termvectors.json b/rest-api-spec/src/main/resources/rest-api-spec/api/termvectors.json index 132471ca54f41..f0c64cc9da9c4 100644 --- a/rest-api-spec/src/main/resources/rest-api-spec/api/termvectors.json +++ b/rest-api-spec/src/main/resources/rest-api-spec/api/termvectors.json @@ -83,7 +83,7 @@ "description": "Specify the node or shard the operation should be performed on (default: random)." }, "routing": { - "type": "string", + "type": "list", "description": "Specific routing value." }, "realtime": { diff --git a/rest-api-spec/src/main/resources/rest-api-spec/api/update.json b/rest-api-spec/src/main/resources/rest-api-spec/api/update.json index 51d643fc69ae5..7612828a6ef31 100644 --- a/rest-api-spec/src/main/resources/rest-api-spec/api/update.json +++ b/rest-api-spec/src/main/resources/rest-api-spec/api/update.json @@ -74,7 +74,7 @@ "description": "Specify how many times should the operation be retried when a conflict occurs (default: 0)" }, "routing": { - "type": "string", + "type": "list", "description": "Specific routing value" }, "timeout": {