aboutsummaryrefslogtreecommitdiffstats
path: root/src/main/java/org/onap/crud/entity/Vertex.java
diff options
context:
space:
mode:
authorBansal, Nitin (nb121v) <nitin.bansal@amdocs.com>2018-11-07 10:36:38 -0500
committerBansal, Nitin (nb121v) <nitin.bansal@amdocs.com>2018-11-07 10:37:47 -0500
commitdee6c34b3e5d3b40bc74fc73fafc1d116126c7fc (patch)
treec5428449b7b6618f5aba94e3f1db65f2b1e37030 /src/main/java/org/onap/crud/entity/Vertex.java
parentf83c10c4279f88bccecc195811c21acb2d6d0811 (diff)
Add swagger docs for gizmo APIs
Improve the way node type is resolved from OXM jaxbContext. Issue-ID: AAI-1882 Change-Id: Ia72fea0ac286dc96bb3b29d117b241b58b7eece7 Signed-off-by: Bansal, Nitin (nb121v) <nitin.bansal@amdocs.com>
Diffstat (limited to 'src/main/java/org/onap/crud/entity/Vertex.java')
-rw-r--r--src/main/java/org/onap/crud/entity/Vertex.java5
1 files changed, 2 insertions, 3 deletions
diff --git a/src/main/java/org/onap/crud/entity/Vertex.java b/src/main/java/org/onap/crud/entity/Vertex.java
index fd03827..a70253e 100644
--- a/src/main/java/org/onap/crud/entity/Vertex.java
+++ b/src/main/java/org/onap/crud/entity/Vertex.java
@@ -113,9 +113,8 @@ public class Vertex {
type = OxmModelValidator.resolveCollectionType(version, type);
DynamicJAXBContext jaxbContext = OxmModelLoader.getContextForVersion(version);
- String modelObjectClass = CaseFormat.LOWER_CAMEL.to(CaseFormat.UPPER_CAMEL, CaseFormat.LOWER_HYPHEN.to(CaseFormat.UPPER_CAMEL, type));
-
- final DynamicType modelObjectType = jaxbContext.getDynamicType(modelObjectClass);
+
+ final DynamicType modelObjectType = OxmModelLoader.getDynamicTypeForVersion(version, type);
final DynamicType reservedType = jaxbContext.getDynamicType("ReservedPropNames");