Fix inconsistency introduced during commit b4cbb0ee9 05/130205/3
authorkuldipr <kuldip.rai@amdocs.com>
Tue, 17 May 2022 14:30:34 +0000 (10:30 -0400)
committerKAPIL SINGAL <ks220y@att.com>
Mon, 22 Aug 2022 16:40:16 +0000 (16:40 +0000)
Issue-ID: CCSDK-3738
Signed-off-by: kuldipr <kuldip.rai@amdocs.com>
Change-Id: I72ae642f3027fa3b4c8caa3105b2147ed654c159

ms/blueprintsprocessor/modules/inbounds/designer-api/src/main/kotlin/org/onap/ccsdk/cds/blueprintsprocessor/designer/api/handler/BluePrintModelHandler.kt

index a5fcd32..97fa736 100644 (file)
@@ -160,7 +160,7 @@ open class BluePrintModelHandler(
 
         if (workFlow.inputs != null) {
             for ((k, v) in workFlow.inputs!!) {
-                addPropertyInfo(v, blueprintContext, wfRes)
+                addPropertyInfo(k, v, blueprintContext, wfRes)
             }
         }
 
@@ -174,13 +174,6 @@ open class BluePrintModelHandler(
         return wfRes
     }
 
-    private fun addPropertyInfo(prop: PropertyDefinition, ctx: BluePrintContext, res: WorkFlowSpecResponse) {
-        addDataType(prop.type, ctx, res)
-        if (prop.entrySchema != null && prop.entrySchema!!.type != null) {
-            addDataType(prop.entrySchema!!.type, ctx, res)
-        }
-    }
-
     private fun addPropertyInfo(propName: String, prop: PropertyDefinition, ctx: BluePrintContext, res: WorkFlowSpecResponse) {
         updatePropertyInfo(propName, prop, ctx, res)
         addDataType(prop.type, ctx, res)