From aaf3338e11aae558630afdec3b3444bce4b24dcb Mon Sep 17 00:00:00 2001 From: "k.triantafyllou" Date: Wed, 12 Jun 2024 12:36:17 +0300 Subject: [PATCH] Json Ignore for umbrella optional --- .../dnetlib/uoamonitorservice/generics/StakeholderGeneric.java | 2 ++ 1 file changed, 2 insertions(+) diff --git a/src/main/java/eu/dnetlib/uoamonitorservice/generics/StakeholderGeneric.java b/src/main/java/eu/dnetlib/uoamonitorservice/generics/StakeholderGeneric.java index a8032ce..9377dd2 100644 --- a/src/main/java/eu/dnetlib/uoamonitorservice/generics/StakeholderGeneric.java +++ b/src/main/java/eu/dnetlib/uoamonitorservice/generics/StakeholderGeneric.java @@ -1,5 +1,6 @@ package eu.dnetlib.uoamonitorservice.generics; +import com.fasterxml.jackson.annotation.JsonIgnore; import eu.dnetlib.uoamonitorservice.primitives.Locale; import eu.dnetlib.uoamonitorservice.primitives.StakeholderType; import eu.dnetlib.uoamonitorservice.primitives.Umbrella; @@ -174,6 +175,7 @@ public class StakeholderGeneric extends Common { return umbrella; } + @JsonIgnore public Optional> getUmbrellaOptional() { return Optional.ofNullable(umbrella); }