diff options
author | Chenfei Gao <cgao@research.att.com> | 2019-04-15 14:38:39 -0400 |
---|---|---|
committer | Chenfei Gao <cgao@research.att.com> | 2019-04-15 14:38:56 -0400 |
commit | a2d8f1d73ea10e3bc870c7ed45824eda6011534f (patch) | |
tree | 490952c1562e7c632faffa8a334ac525a6e0078b /models-tosca | |
parent | 510092ecd2b01d94066040e69e5b1ad52dc31c92 (diff) |
Add serialized name for typeVersion
Add serialied name and swagger ui rendering name for
attribute typeVersion in ToscaPolicy.
Issue-ID: POLICY-1515
Change-Id: I42e85117c5f47901bf8c16d3cc6f162a8b6db5e1
Signed-off-by: Chenfei Gao <cgao@research.att.com>
Diffstat (limited to 'models-tosca')
-rw-r--r-- | models-tosca/src/main/java/org/onap/policy/models/tosca/authorative/concepts/ToscaPolicy.java | 4 |
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; |