This is an automated email from the ASF dual-hosted git repository. chesnay pushed a commit to branch release-1.17 in repository https://gitbox.apache.org/repos/asf/flink.git
The following commit(s) were added to refs/heads/release-1.17 by this push: new b5a6c5c9a0b [FLINK-31657][rest][docs] Exclude isEmpty property b5a6c5c9a0b is described below commit b5a6c5c9a0be89ccd70544546793db21c9a2c3b1 Author: Chesnay Schepler <ches...@apache.org> AuthorDate: Wed Mar 29 13:08:59 2023 +0200 [FLINK-31657][rest][docs] Exclude isEmpty property --- docs/static/generated/rest_v1_dispatcher.yml | 9 --------- .../apache/flink/runtime/rest/messages/ConfigurationInfo.java | 8 ++++++++ 2 files changed, 8 insertions(+), 9 deletions(-) diff --git a/docs/static/generated/rest_v1_dispatcher.yml b/docs/static/generated/rest_v1_dispatcher.yml index 787fbab50eb..9d98a69c8b5 100644 --- a/docs/static/generated/rest_v1_dispatcher.yml +++ b/docs/static/generated/rest_v1_dispatcher.yml @@ -269,9 +269,6 @@ paths: application/json: schema: type: array - properties: - empty: - type: boolean items: $ref: '#/components/schemas/ConfigurationInfoEntry' /jobmanager/environment: @@ -722,9 +719,6 @@ paths: application/json: schema: type: array - properties: - empty: - type: boolean items: $ref: '#/components/schemas/ConfigurationInfoEntry' /jobs/{jobid}/jobmanager/environment: @@ -1883,9 +1877,6 @@ components: type: boolean ConfigurationInfo: type: array - properties: - empty: - type: boolean items: $ref: '#/components/schemas/ConfigurationInfoEntry' ConfigurationInfoEntry: diff --git a/flink-runtime/src/main/java/org/apache/flink/runtime/rest/messages/ConfigurationInfo.java b/flink-runtime/src/main/java/org/apache/flink/runtime/rest/messages/ConfigurationInfo.java index bcb90b95abe..e0dcd23ae47 100644 --- a/flink-runtime/src/main/java/org/apache/flink/runtime/rest/messages/ConfigurationInfo.java +++ b/flink-runtime/src/main/java/org/apache/flink/runtime/rest/messages/ConfigurationInfo.java @@ -22,6 +22,8 @@ import org.apache.flink.configuration.Configuration; import org.apache.flink.configuration.ConfigurationUtils; import org.apache.flink.runtime.rest.handler.cluster.ClusterConfigHandler; +import org.apache.flink.shaded.jackson2.com.fasterxml.jackson.annotation.JsonIgnore; + import java.util.ArrayList; import java.util.Map; @@ -40,6 +42,12 @@ public class ConfigurationInfo extends ArrayList<ConfigurationInfoEntry> impleme super(initialEntries); } + @Override + @JsonIgnore + public boolean isEmpty() { + return super.isEmpty(); + } + public static ConfigurationInfo from(Configuration config) { final ConfigurationInfo clusterConfig = new ConfigurationInfo(config.keySet().size()); final Map<String, String> configurationWithHiddenSensitiveValues =