From 70be3b7d76f6bd8d2c834496c688d349933e7130 Mon Sep 17 00:00:00 2001 From: Jim Hahn Date: Tue, 16 Apr 2019 15:32:12 -0400 Subject: Don't include "nullVersion" in swagger API Swagger sitll uses jackson, thus it is including ToscaPolicyIdentifierOptVersion.isNullVersion() in the API that it generates. Added @JsonIgnore annotation to prevent it from being included. Similar issue with get/setVersion() in PdpGroup. Created POLICY-1653 to remove the isNullVersion() method altogether in El Alto. Change-Id: I6cb7b7d1d75258eeb9d6f9b6c7a48eeb32174307 Issue-ID: POLICY-1542 Signed-off-by: Jim Hahn --- .../tosca/authorative/concepts/ToscaPolicyIdentifierOptVersion.java | 2 ++ 1 file changed, 2 insertions(+) (limited to 'models-tosca/src/main/java/org') diff --git a/models-tosca/src/main/java/org/onap/policy/models/tosca/authorative/concepts/ToscaPolicyIdentifierOptVersion.java b/models-tosca/src/main/java/org/onap/policy/models/tosca/authorative/concepts/ToscaPolicyIdentifierOptVersion.java index adfd616c3..a6aec0858 100644 --- a/models-tosca/src/main/java/org/onap/policy/models/tosca/authorative/concepts/ToscaPolicyIdentifierOptVersion.java +++ b/models-tosca/src/main/java/org/onap/policy/models/tosca/authorative/concepts/ToscaPolicyIdentifierOptVersion.java @@ -20,6 +20,7 @@ package org.onap.policy.models.tosca.authorative.concepts; +import com.fasterxml.jackson.annotation.JsonIgnore; import com.google.gson.annotations.SerializedName; import lombok.Data; import lombok.NoArgsConstructor; @@ -61,6 +62,7 @@ public class ToscaPolicyIdentifierOptVersion implements Comparable