Skip to content

Commit

Permalink
changing the field name from data_stream_settings to data_streams, si…
Browse files Browse the repository at this point in the history
…nce no settings are evaluated
  • Loading branch information
masseyke committed Nov 7, 2024
1 parent 5aaa98a commit d40bd73
Showing 1 changed file with 2 additions and 2 deletions.
Original file line number Diff line number Diff line change
Expand Up @@ -146,7 +146,7 @@ private static Map<DeprecationIssue, List<String>> getMergedIssuesToNodesMap(
}

public static class Response extends ActionResponse implements ToXContentObject {
static final Set<String> RESERVED_NAMES = Set.of("cluster_settings", "node_settings", "index_settings", "data_stream_settings");
static final Set<String> RESERVED_NAMES = Set.of("cluster_settings", "node_settings", "index_settings", "data_streams");
private final List<DeprecationIssue> clusterSettingsIssues;
private final List<DeprecationIssue> nodeSettingsIssues;
private final Map<String, List<DeprecationIssue>> indexSettingsIssues;
Expand Down Expand Up @@ -232,7 +232,7 @@ public XContentBuilder toXContent(XContentBuilder builder, Params params) throws
.array("node_settings", nodeSettingsIssues.toArray())
.field("index_settings")
.map(indexSettingsIssues)
.field("data_stream_settings")
.field("data_streams")
.map(dataStreamIssues)
.mapContents(pluginSettingsIssues)
.endObject();
Expand Down

0 comments on commit d40bd73

Please sign in to comment.