Skip to content

Commit fc4b99e

Browse files
Changed all rest-spec definitions of expand_wildcards to be an enum
with values: open, closed, none, all Relates to #9295
1 parent d469282 commit fc4b99e

34 files changed

+40
-36
lines changed

rest-api-spec/api/cluster.state.json

+4-2
Original file line numberDiff line numberDiff line change
@@ -42,8 +42,10 @@
4242
"description" : "Whether to ignore if a wildcard indices expression resolves into no concrete indices. (This includes `_all` string or when no indices have been specified)"
4343
},
4444
"expand_wildcards":{
45-
"type":"list",
46-
"description":"Whether wildcard expressions should get expanded to open or closed indices (default: open)"
45+
"type" : "enum",
46+
"options" : ["open","closed","none","all"],
47+
"default" : "open",
48+
"description" : "Whether to expand wildcard expression to concrete indices that are open, closed or both."
4749
}
4850
}
4951
},

rest-api-spec/api/count.json

+1-1
Original file line numberDiff line numberDiff line change
@@ -26,7 +26,7 @@
2626
},
2727
"expand_wildcards": {
2828
"type" : "enum",
29-
"options" : ["open","closed"],
29+
"options" : ["open","closed","none","all"],
3030
"default" : "open",
3131
"description" : "Whether to expand wildcard expression to concrete indices that are open, closed or both."
3232
},

rest-api-spec/api/count_percolate.json

+1-1
Original file line numberDiff line numberDiff line change
@@ -41,7 +41,7 @@
4141
},
4242
"expand_wildcards": {
4343
"type": "enum",
44-
"options": ["open", "closed"],
44+
"options": ["open", "closed","none","all"],
4545
"default": "open",
4646
"description": "Whether to expand wildcard expression to concrete indices that are open, closed or both."
4747
},

rest-api-spec/api/delete_by_query.json

+1-1
Original file line numberDiff line numberDiff line change
@@ -46,7 +46,7 @@
4646
},
4747
"expand_wildcards": {
4848
"type" : "enum",
49-
"options" : ["open","closed"],
49+
"options" : ["open","closed","none","all"],
5050
"default" : "open",
5151
"description" : "Whether to expand wildcard expression to concrete indices that are open, closed or both."
5252
},

rest-api-spec/api/indices.clear_cache.json

+1-1
Original file line numberDiff line numberDiff line change
@@ -54,7 +54,7 @@
5454
},
5555
"expand_wildcards": {
5656
"type" : "enum",
57-
"options" : ["open","closed"],
57+
"options" : ["open","closed","none","all"],
5858
"default" : "open",
5959
"description" : "Whether to expand wildcard expression to concrete indices that are open, closed or both."
6060
},

rest-api-spec/api/indices.close.json

+1-1
Original file line numberDiff line numberDiff line change
@@ -31,7 +31,7 @@
3131
},
3232
"expand_wildcards": {
3333
"type" : "enum",
34-
"options" : ["open","closed"],
34+
"options" : ["open","closed","none","all"],
3535
"default" : "open",
3636
"description" : "Whether to expand wildcard expression to concrete indices that are open, closed or both."
3737
}

rest-api-spec/api/indices.exists.json

+1-1
Original file line numberDiff line numberDiff line change
@@ -23,7 +23,7 @@
2323
},
2424
"expand_wildcards": {
2525
"type" : "enum",
26-
"options" : ["open","closed"],
26+
"options" : ["open","closed","none","all"],
2727
"default" : "open",
2828
"description" : "Whether to expand wildcard expression to concrete indices that are open, closed or both."
2929
},

rest-api-spec/api/indices.exists_alias.json

+1-1
Original file line numberDiff line numberDiff line change
@@ -26,7 +26,7 @@
2626
},
2727
"expand_wildcards": {
2828
"type" : "enum",
29-
"options" : ["open","closed"],
29+
"options" : ["open","closed","none","all"],
3030
"default" : ["open", "closed"],
3131
"description" : "Whether to expand wildcard expression to concrete indices that are open, closed or both."
3232
},

rest-api-spec/api/indices.exists_type.json

+1-1
Original file line numberDiff line numberDiff line change
@@ -28,7 +28,7 @@
2828
},
2929
"expand_wildcards": {
3030
"type" : "enum",
31-
"options" : ["open","closed"],
31+
"options" : ["open","closed","none","all"],
3232
"default" : "open",
3333
"description" : "Whether to expand wildcard expression to concrete indices that are open, closed or both."
3434
},

rest-api-spec/api/indices.flush.json

+1-1
Original file line numberDiff line numberDiff line change
@@ -34,7 +34,7 @@
3434
},
3535
"expand_wildcards": {
3636
"type" : "enum",
37-
"options" : ["open","closed"],
37+
"options" : ["open","closed","none","all"],
3838
"default" : "open",
3939
"description" : "Whether to expand wildcard expression to concrete indices that are open, closed or both."
4040
}

rest-api-spec/api/indices.get.json

+3-1
Original file line numberDiff line numberDiff line change
@@ -30,7 +30,9 @@
3030
"description":"Ignore if a wildcard expression resolves to no concrete indices (default: false)"
3131
},
3232
"expand_wildcards":{
33-
"type":"list",
33+
"type" : "enum",
34+
"options" : ["open","closed","none","all"],
35+
"default" : "open",
3436
"description":"Whether wildcard expressions should get expanded to open or closed indices (default: open)"
3537
}
3638
}

rest-api-spec/api/indices.get_alias.json

+1-1
Original file line numberDiff line numberDiff line change
@@ -26,7 +26,7 @@
2626
},
2727
"expand_wildcards": {
2828
"type" : "enum",
29-
"options" : ["open","closed"],
29+
"options" : ["open","closed","none","all"],
3030
"default" : "open",
3131
"description" : "Whether to expand wildcard expression to concrete indices that are open, closed or both."
3232
},

rest-api-spec/api/indices.get_field_mapping.json

+1-1
Original file line numberDiff line numberDiff line change
@@ -35,7 +35,7 @@
3535
},
3636
"expand_wildcards": {
3737
"type" : "enum",
38-
"options" : ["open","closed"],
38+
"options" : ["open","closed","none","all"],
3939
"default" : "open",
4040
"description" : "Whether to expand wildcard expression to concrete indices that are open, closed or both."
4141
},

rest-api-spec/api/indices.get_mapping.json

+2-2
Original file line numberDiff line numberDiff line change
@@ -25,8 +25,8 @@
2525
"description" : "Whether to ignore if a wildcard indices expression resolves into no concrete indices. (This includes `_all` string or when no indices have been specified)"
2626
},
2727
"expand_wildcards": {
28-
"type" : "list",
29-
"options" : ["open","closed"],
28+
"type" : "enum",
29+
"options" : ["open","closed","none","all"],
3030
"default" : "open",
3131
"description" : "Whether to expand wildcard expression to concrete indices that are open, closed or both."
3232
},

rest-api-spec/api/indices.get_settings.json

+1-1
Original file line numberDiff line numberDiff line change
@@ -26,7 +26,7 @@
2626
},
2727
"expand_wildcards": {
2828
"type" : "enum",
29-
"options" : ["open","closed"],
29+
"options" : ["open","closed","none","all"],
3030
"default" : ["open","closed"],
3131
"description" : "Whether to expand wildcard expression to concrete indices that are open, closed or both."
3232
},

rest-api-spec/api/indices.get_upgrade.json

+1-1
Original file line numberDiff line numberDiff line change
@@ -22,7 +22,7 @@
2222
},
2323
"expand_wildcards": {
2424
"type" : "enum",
25-
"options" : ["open","closed"],
25+
"options" : ["open","closed","none","all"],
2626
"default" : "open",
2727
"description" : "Whether to expand wildcard expression to concrete indices that are open, closed or both."
2828
},

rest-api-spec/api/indices.get_warmer.json

+1-1
Original file line numberDiff line numberDiff line change
@@ -30,7 +30,7 @@
3030
},
3131
"expand_wildcards": {
3232
"type" : "enum",
33-
"options" : ["open","closed"],
33+
"options" : ["open","closed","none","all"],
3434
"default" : "open",
3535
"description" : "Whether to expand wildcard expression to concrete indices that are open, closed or both."
3636
},

rest-api-spec/api/indices.open.json

+1-1
Original file line numberDiff line numberDiff line change
@@ -31,7 +31,7 @@
3131
},
3232
"expand_wildcards": {
3333
"type" : "enum",
34-
"options" : ["open","closed"],
34+
"options" : ["open","closed","none","all"],
3535
"default" : "closed",
3636
"description" : "Whether to expand wildcard expression to concrete indices that are open, closed or both."
3737
}

rest-api-spec/api/indices.optimize.json

+1-1
Original file line numberDiff line numberDiff line change
@@ -26,7 +26,7 @@
2626
},
2727
"expand_wildcards": {
2828
"type" : "enum",
29-
"options" : ["open","closed"],
29+
"options" : ["open","closed","none","all"],
3030
"default" : "open",
3131
"description" : "Whether to expand wildcard expression to concrete indices that are open, closed or both."
3232
},

rest-api-spec/api/indices.put_mapping.json

+1-1
Original file line numberDiff line numberDiff line change
@@ -39,7 +39,7 @@
3939
},
4040
"expand_wildcards": {
4141
"type" : "enum",
42-
"options" : ["open","closed"],
42+
"options" : ["open","closed","none","all"],
4343
"default" : "open",
4444
"description" : "Whether to expand wildcard expression to concrete indices that are open, closed or both."
4545
}

rest-api-spec/api/indices.put_settings.json

+1-1
Original file line numberDiff line numberDiff line change
@@ -26,7 +26,7 @@
2626
},
2727
"expand_wildcards": {
2828
"type": "enum",
29-
"options": ["open", "closed"],
29+
"options": ["open", "closed","none","all"],
3030
"default": "open",
3131
"description": "Whether to expand wildcard expression to concrete indices that are open, closed or both."
3232
},

rest-api-spec/api/indices.put_warmer.json

+1-1
Original file line numberDiff line numberDiff line change
@@ -35,7 +35,7 @@
3535
},
3636
"expand_wildcards": {
3737
"type" : "enum",
38-
"options" : ["open","closed"],
38+
"options" : ["open","closed","none","all"],
3939
"default" : "open",
4040
"description" : "Whether to expand wildcard expression to concrete indices that are open, closed or both, in the search request to warm."
4141
}

rest-api-spec/api/indices.refresh.json

+1-1
Original file line numberDiff line numberDiff line change
@@ -22,7 +22,7 @@
2222
},
2323
"expand_wildcards": {
2424
"type" : "enum",
25-
"options" : ["open","closed"],
25+
"options" : ["open","closed","none","all"],
2626
"default" : "open",
2727
"description" : "Whether to expand wildcard expression to concrete indices that are open, closed or both."
2828
},

rest-api-spec/api/indices.segments.json

+1-1
Original file line numberDiff line numberDiff line change
@@ -22,7 +22,7 @@
2222
},
2323
"expand_wildcards": {
2424
"type" : "enum",
25-
"options" : ["open","closed"],
25+
"options" : ["open","closed","none","all"],
2626
"default" : "open",
2727
"description" : "Whether to expand wildcard expression to concrete indices that are open, closed or both."
2828
},

rest-api-spec/api/indices.status.json

+1-1
Original file line numberDiff line numberDiff line change
@@ -22,7 +22,7 @@
2222
},
2323
"expand_wildcards": {
2424
"type" : "enum",
25-
"options" : ["open","closed"],
25+
"options" : ["open","closed","none","all"],
2626
"default" : "open",
2727
"description" : "Whether to expand wildcard expression to concrete indices that are open, closed or both."
2828
},

rest-api-spec/api/indices.upgrade.json

+1-1
Original file line numberDiff line numberDiff line change
@@ -18,7 +18,7 @@
1818
},
1919
"expand_wildcards": {
2020
"type" : "enum",
21-
"options" : ["open","closed"],
21+
"options" : ["open","closed","none","all"],
2222
"default" : "open",
2323
"description" : "Whether to expand wildcard expression to concrete indices that are open, closed or both."
2424
},

rest-api-spec/api/indices.validate_query.json

+1-1
Original file line numberDiff line numberDiff line change
@@ -30,7 +30,7 @@
3030
},
3131
"expand_wildcards": {
3232
"type" : "enum",
33-
"options" : ["open","closed"],
33+
"options" : ["open","closed","none","all"],
3434
"default" : "open",
3535
"description" : "Whether to expand wildcard expression to concrete indices that are open, closed or both."
3636
},

rest-api-spec/api/mpercolate.json

+1-1
Original file line numberDiff line numberDiff line change
@@ -26,7 +26,7 @@
2626
},
2727
"expand_wildcards": {
2828
"type": "enum",
29-
"options": ["open", "closed"],
29+
"options": ["open", "closed","none","all"],
3030
"default": "open",
3131
"description": "Whether to expand wildcard expression to concrete indices that are open, closed or both."
3232
}

rest-api-spec/api/percolate.json

+1-1
Original file line numberDiff line numberDiff line change
@@ -41,7 +41,7 @@
4141
},
4242
"expand_wildcards": {
4343
"type" : "enum",
44-
"options" : ["open","closed"],
44+
"options" : ["open","closed","none","all"],
4545
"default" : "open",
4646
"description" : "Whether to expand wildcard expression to concrete indices that are open, closed or both."
4747
},

rest-api-spec/api/search.json

+1-1
Original file line numberDiff line numberDiff line change
@@ -56,7 +56,7 @@
5656
},
5757
"expand_wildcards": {
5858
"type" : "enum",
59-
"options" : ["open","closed"],
59+
"options" : ["open","closed","none","all"],
6060
"default" : "open",
6161
"description" : "Whether to expand wildcard expression to concrete indices that are open, closed or both."
6262
},

rest-api-spec/api/search_exists.json

+1-1
Original file line numberDiff line numberDiff line change
@@ -26,7 +26,7 @@
2626
},
2727
"expand_wildcards": {
2828
"type" : "enum",
29-
"options" : ["open","closed"],
29+
"options" : ["open","closed","none","all"],
3030
"default" : "open",
3131
"description" : "Whether to expand wildcard expression to concrete indices that are open, closed or both."
3232
},

rest-api-spec/api/search_shards.json

+1-1
Original file line numberDiff line numberDiff line change
@@ -40,7 +40,7 @@
4040
},
4141
"expand_wildcards": {
4242
"type" : "enum",
43-
"options" : ["open","closed"],
43+
"options" : ["open","closed","none","all"],
4444
"default" : "open",
4545
"description" : "Whether to expand wildcard expression to concrete indices that are open, closed or both."
4646
}

rest-api-spec/api/search_template.json

+1-1
Original file line numberDiff line numberDiff line change
@@ -26,7 +26,7 @@
2626
},
2727
"expand_wildcards": {
2828
"type" : "enum",
29-
"options" : ["open","closed"],
29+
"options" : ["open","closed","none","all"],
3030
"default" : "open",
3131
"description" : "Whether to expand wildcard expression to concrete indices that are open, closed or both."
3232
},

rest-api-spec/api/suggest.json

+1-1
Original file line numberDiff line numberDiff line change
@@ -22,7 +22,7 @@
2222
},
2323
"expand_wildcards": {
2424
"type" : "enum",
25-
"options" : ["open","closed"],
25+
"options" : ["open","closed","none","all"],
2626
"default" : "open",
2727
"description" : "Whether to expand wildcard expression to concrete indices that are open, closed or both."
2828
},

0 commit comments

Comments
 (0)