Skip to content

Commit 618de48

Browse files
authored
Remove local param from field mapping API spec (#122922)
The `local` param for the `GetFieldMapping` API was deprecated in #55014 and I think #57265 aimed to propogate that deprecation to the REST API spec, but it changed `get_mapping.json` instead of `get_field_mapping.json`. #55100 removed the `local` param for the _field_ mapping API so we can safely remove the field from the spec and remove the YAML test.
1 parent 5166b81 commit 618de48

File tree

2 files changed

+0
-18
lines changed

2 files changed

+0
-18
lines changed

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

Lines changed: 0 additions & 4 deletions
Original file line numberDiff line numberDiff line change
@@ -65,10 +65,6 @@
6565
],
6666
"default":"open",
6767
"description":"Whether to expand wildcard expression to concrete indices that are open, closed or both."
68-
},
69-
"local":{
70-
"type":"boolean",
71-
"description":"Return local information, do not retrieve the state from master node (default: false)"
7268
}
7369
}
7470
}

rest-api-spec/src/yamlRestTest/resources/rest-api-spec/test/indices.get_field_mapping/10_basic.yml

Lines changed: 0 additions & 14 deletions
Original file line numberDiff line numberDiff line change
@@ -50,17 +50,3 @@ setup:
5050

5151
- match: {test_index.mappings.text.mapping.text.type: text}
5252
- match: {test_index.mappings.text.mapping.text.analyzer: default}
53-
54-
---
55-
"Get field mapping with local parameter should fail":
56-
57-
- requires:
58-
test_runner_features: ["warnings"]
59-
cluster_features: ["gte_v8.0.0"]
60-
reason: "local parameter for get field mapping API was allowed before v8"
61-
62-
- do:
63-
catch: bad_request
64-
indices.get_field_mapping:
65-
fields: text
66-
local: true

0 commit comments

Comments
 (0)