Skip to content

Commit e85eb1f

Browse files
authored
[8.19] rest-api-spec: fix and expand deprecation information (#137623) (#138075)
* rest-api-spec: fix and expand deprecation information (#137623) * rest-api-spec: fix and expand deprecation information * Fix JSON Schema validation (cherry picked from commit 0022efd) # Conflicts: # rest-api-spec/src/main/resources/rest-api-spec/api/cluster.exists_component_template.json # rest-api-spec/src/main/resources/rest-api-spec/api/cluster.get_component_template.json # rest-api-spec/src/main/resources/rest-api-spec/api/cluster.state.json # rest-api-spec/src/main/resources/rest-api-spec/api/indices.exists_template.json # rest-api-spec/src/main/resources/rest-api-spec/api/indices.get_index_template.json # rest-api-spec/src/main/resources/rest-api-spec/api/indices.get_mapping.json # rest-api-spec/src/main/resources/rest-api-spec/api/indices.get_settings.json # rest-api-spec/src/main/resources/rest-api-spec/api/indices.get_template.json * Fix rest-api-spec validation
1 parent 069029e commit e85eb1f

28 files changed

+113
-10
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/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.get_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.put_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.resolve_cluster.json

Lines changed: 4 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -40,6 +40,10 @@
4040
"description": "Whether specified concrete indices should be ignored when unavailable (missing or closed). Only allowed when providing an index expression."
4141
},
4242
"ignore_throttled": {
43+
"deprecated": {
44+
"version": "7.16.0",
45+
"description": "This parameter is deprecated because frozen indices have been deprecated."
46+
},
4347
"type": "boolean",
4448
"default": false,
4549
"description": "Whether specified concrete, expanded or aliased indices should be ignored when throttled. Only allowed when providing an index expression."

rest-api-spec/src/main/resources/rest-api-spec/api/license.get.json

Lines changed: 4 additions & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -29,7 +29,10 @@
2929
},
3030
"accept_enterprise": {
3131
"type": "boolean",
32-
"deprecated": true,
32+
"deprecated": {
33+
"version": "7.6.0",
34+
"description": "This parameter no longer has any effect"
35+
},
3336
"default": true,
3437
"description": "Supported for backwards compatibility with 7.x. If this param is used it must be set to true"
3538
}

rest-api-spec/src/main/resources/rest-api-spec/api/ml.flush_job.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": "9.1.0",
11+
"description": "Forcing any buffered data to be processed is deprecated, in a future major version a datafeed will be required."
12+
},
913
"headers": {
1014
"accept": [
1115
"application/json"

rest-api-spec/src/main/resources/rest-api-spec/api/ml.get_trained_models.json

Lines changed: 4 additions & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -54,7 +54,10 @@
5454
"type": "boolean",
5555
"description": "Should the full model definition be included in the results. These definitions can be large. So be cautious when including them. Defaults to false.",
5656
"default": false,
57-
"deprecated": true
57+
"deprecated": {
58+
"version": "7.10.0",
59+
"description": "This paramater is deprecated in favor of ?include=definition"
60+
}
5861
},
5962
"decompress_definition": {
6063
"type": "boolean",

0 commit comments

Comments
 (0)