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 97bff093c1dac..19944da4fdee1 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 d78c381309013..ced6ecc15e0a8 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 4115453ce3094..2b2a10d694214 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 205c72378d205..44bd8ca742bca 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 6d40af18d187e..5413e282a7afd 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 92295971ad2f6..79468a33f99aa 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 da5d2fefcc52b..68eea1e4eca39 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 ab2404cab3a4a..a32d2ac23e753 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 aa1d21f81304d..c69fd28a826a6 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 ac91d9bbb89d3..dd484a7d7b02e 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 569f2506e7f3e..69606568736e8 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 d66c61e01d47f..def46f9f84bb2 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 0b80dce6e970a..1452324e42e60 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 08b928a027d20..7bed96457ea90 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 cdf7b833502ca..c09265c3925c5 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 7f5ea704a5f48..1dbc58017a77e 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": {