Fix inconsistency introduced during commit b4cbb0ee9
[ccsdk/cds.git] / 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)