aboutsummaryrefslogtreecommitdiffstats
diff options
context:
space:
mode:
authorJorge Hernandez <jorge.hernandez-herrero@att.com>2019-04-15 20:47:06 +0000
committerGerrit Code Review <gerrit@onap.org>2019-04-15 20:47:06 +0000
commitcf720ed258f922da14e4ce245c7308d6a0399a4a (patch)
tree73ec5cf6d5f7418ba8e15437e3287923b7cc6908
parentb9e6ea17dee2b2b0ab5b49bb9eaa72ddcd08e6cf (diff)
parenta2d8f1d73ea10e3bc870c7ed45824eda6011534f (diff)
Merge "Add serialized name for typeVersion"
-rw-r--r--models-tosca/src/main/java/org/onap/policy/models/tosca/authorative/concepts/ToscaPolicy.java4
1 files changed, 4 insertions, 0 deletions
diff --git a/models-tosca/src/main/java/org/onap/policy/models/tosca/authorative/concepts/ToscaPolicy.java b/models-tosca/src/main/java/org/onap/policy/models/tosca/authorative/concepts/ToscaPolicy.java
index 284e39c9b..27d4eb2e7 100644
--- a/models-tosca/src/main/java/org/onap/policy/models/tosca/authorative/concepts/ToscaPolicy.java
+++ b/models-tosca/src/main/java/org/onap/policy/models/tosca/authorative/concepts/ToscaPolicy.java
@@ -23,6 +23,8 @@
package org.onap.policy.models.tosca.authorative.concepts;
+import com.google.gson.annotations.SerializedName;
+import io.swagger.annotations.ApiModelProperty;
import java.util.LinkedHashMap;
import java.util.Map;
import java.util.Map.Entry;
@@ -44,6 +46,8 @@ import lombok.ToString;
public class ToscaPolicy extends ToscaEntity implements Comparable<ToscaPolicy> {
private String type;
+ @ApiModelProperty(name = "type_version")
+ @SerializedName("type_version")
private String typeVersion;
private Map<String, Object> properties;