From 73f7e4d48b23b8578c684afdd53d574031cc6ffd Mon Sep 17 00:00:00 2001 From: Stanislav Marszalek Date: Thu, 9 Sep 2021 12:23:34 +0200 Subject: MeasurementValue to be ignored in Json Issue-ID: INT-1945 Signed-off-by: Stanislav Marszalek Change-Id: I02d3684c98d563d7f386de2fdf032e930ac61b3f --- .../java/org/onap/a1pesimulator/data/ves/MeasurementFields.java | 6 +++++- 1 file changed, 5 insertions(+), 1 deletion(-) (limited to 'src') diff --git a/src/main/java/org/onap/a1pesimulator/data/ves/MeasurementFields.java b/src/main/java/org/onap/a1pesimulator/data/ves/MeasurementFields.java index 5fe98b3..8432c65 100644 --- a/src/main/java/org/onap/a1pesimulator/data/ves/MeasurementFields.java +++ b/src/main/java/org/onap/a1pesimulator/data/ves/MeasurementFields.java @@ -15,10 +15,13 @@ package org.onap.a1pesimulator.data.ves; import static org.onap.a1pesimulator.util.Constants.MEASUREMENT_FIELD_VALUE; -import com.fasterxml.jackson.annotation.JsonInclude; import java.util.List; import java.util.Map; import java.util.stream.Collectors; + +import com.fasterxml.jackson.annotation.JsonIgnore; +import com.fasterxml.jackson.annotation.JsonInclude; + import lombok.AllArgsConstructor; import lombok.Builder; import lombok.Data; @@ -43,6 +46,7 @@ public class MeasurementFields { private String name; private Map hashMap; + @JsonIgnore public String getMeasurementValue() { if (hashMap.containsKey(MEASUREMENT_FIELD_VALUE)) { return hashMap.get(MEASUREMENT_FIELD_VALUE); -- cgit 1.2.3-korg