Skip to content

Commit 0022efd

Browse files
authored
rest-api-spec: fix and expand deprecation information (#137623)
* rest-api-spec: fix and expand deprecation information * Fix JSON Schema validation
1 parent 27d8274 commit 0022efd

34 files changed

+141
-17
lines changed

rest-api-spec/src/main/resources/rest-api-spec/api/clear_scroll.json

Lines changed: 4 additions & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -32,7 +32,10 @@
3232
"scroll_id": {
3333
"type": "list",
3434
"description": "A comma-separated list of scroll IDs to clear",
35-
"deprecated": true
35+
"deprecated": {
36+
"version": "7.0.0",
37+
"description": "A scroll id can be quite large and should be specified as part of the body"
38+
}
3639
}
3740
},
3841
"deprecated": {

rest-api-spec/src/main/resources/rest-api-spec/api/cluster.exists_component_template.json

Lines changed: 4 additions & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -34,7 +34,10 @@
3434
"description": "Timeout for waiting for new cluster state in case it is blocked"
3535
},
3636
"local": {
37-
"deprecated": true,
37+
"deprecated": {
38+
"version": "9.0.0",
39+
"description": "This parameter has no effect, is now deprecated, and will be removed in a future version."
40+
},
3841
"type": "boolean",
3942
"default": false,
4043
"description": "Return local information, do not retrieve the state from master node (default: false)"

rest-api-spec/src/main/resources/rest-api-spec/api/cluster.get_component_template.json

Lines changed: 4 additions & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -40,7 +40,10 @@
4040
"description": "Timeout for waiting for new cluster state in case it is blocked"
4141
},
4242
"local": {
43-
"deprecated": true,
43+
"deprecated": {
44+
"version": "9.0.0",
45+
"description": "This parameter has no effect, is now deprecated, and will be removed in a future version."
46+
},
4447
"type": "boolean",
4548
"default": false,
4649
"description": "Return local information, do not retrieve the state from master node (default: false)"

rest-api-spec/src/main/resources/rest-api-spec/api/cluster.state.json

Lines changed: 4 additions & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -71,7 +71,10 @@
7171
},
7272
"params": {
7373
"local": {
74-
"deprecated": true,
74+
"deprecated": {
75+
"version": "9.0.0",
76+
"description": "This parameter has no effect, is now deprecated, and will be removed in a future version."
77+
},
7578
"type": "boolean",
7679
"default": false,
7780
"description": "Return local information, do not retrieve the state from master node (default: false)"

rest-api-spec/src/main/resources/rest-api-spec/api/count.json

Lines changed: 4 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -45,6 +45,10 @@
4545
"description": "Whether specified concrete indices should be ignored when unavailable (missing or closed)"
4646
},
4747
"ignore_throttled": {
48+
"deprecated": {
49+
"version": "7.16.0",
50+
"description": "This parameter is deprecated because frozen indices have been deprecated."
51+
},
4852
"type": "boolean",
4953
"default": true,
5054
"description": "Whether specified concrete, expanded or aliased indices should be ignored when throttled"

rest-api-spec/src/main/resources/rest-api-spec/api/delete_by_query.json

Lines changed: 4 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -127,6 +127,10 @@
127127
"description": "Maximum number of documents to process (default: all documents)"
128128
},
129129
"sort": {
130+
"deprecated": {
131+
"version": "9.0.0",
132+
"description": "This query parameter is not supported and will be removed in a future version"
133+
},
130134
"type": "list",
131135
"description": "A comma-separated list of <field>:<direction> pairs"
132136
},

rest-api-spec/src/main/resources/rest-api-spec/api/indices.delete_template.json

Lines changed: 4 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -6,6 +6,10 @@
66
},
77
"stability": "stable",
88
"visibility": "public",
9+
"deprecated": {
10+
"version": "7.8.0",
11+
"description": "Legacy index templates are deprecated in favor of composable templates"
12+
},
913
"headers": {
1014
"accept": [
1115
"application/json"

rest-api-spec/src/main/resources/rest-api-spec/api/indices.exists_template.json

Lines changed: 4 additions & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -39,7 +39,10 @@
3939
"description": "Timeout for waiting for new cluster state in case it is blocked"
4040
},
4141
"local": {
42-
"deprecated": true,
42+
"deprecated": {
43+
"version": "9.0.0",
44+
"description": "This parameter has no effect, is now deprecated, and will be removed in a future version."
45+
},
4346
"type": "boolean",
4447
"default": false,
4548
"description": "Return local information, do not retrieve the state from master node (default: false)"

rest-api-spec/src/main/resources/rest-api-spec/api/indices.get_index_template.json

Lines changed: 4 additions & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -45,7 +45,10 @@
4545
"description": "Timeout for waiting for new cluster state in case it is blocked"
4646
},
4747
"local": {
48-
"deprecated": true,
48+
"deprecated": {
49+
"version": "9.0.0",
50+
"description": "This parameter has no effect, is now deprecated, and will be removed in a future version."
51+
},
4952
"type": "boolean",
5053
"default": false,
5154
"description": "Return local information, do not retrieve the state from master node (default: false)"

rest-api-spec/src/main/resources/rest-api-spec/api/indices.get_mapping.json

Lines changed: 4 additions & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -63,7 +63,10 @@
6363
},
6464
"local": {
6565
"type": "boolean",
66-
"deprecated": true,
66+
"deprecated": {
67+
"version": "7.8.0",
68+
"description": "This parameter is a no-op and field mappings are always retrieved locally."
69+
},
6770
"default": false,
6871
"description": "Return local information, do not retrieve the state from master node (default: false)"
6972
}

0 commit comments

Comments
 (0)