Fix error merging node types 05/136305/3
authorMichaelMorris <michael.morris@est.tech>
Mon, 23 Oct 2023 09:47:21 +0000 (10:47 +0100)
committerMichael Morris <michael.morris@est.tech>
Mon, 23 Oct 2023 11:34:53 +0000 (11:34 +0000)
Signed-off-by: MichaelMorris <michael.morris@est.tech>
Issue-ID: SDC-4664
Change-Id: I90dae030e099b2d2936120342335534a031e98a7

catalog-be/src/main/java/org/openecomp/sdc/be/tosca/CommonCsarGenerator.java

index 7b55f32..d5c64db 100644 (file)
@@ -764,11 +764,12 @@ public class CommonCsarGenerator {
         return key;
     }
 
+    @SuppressWarnings("unchecked")
     private Map<String, Object> createProperties(final Object value) {
         final Map<String, Object> propertiesMap = new HashMap<>();
         propertiesMap.put("type", ((Map<String, Object>) value).get("type"));
         propertiesMap.put("required", ((Map<String, Object>) value).get("required"));
-        final Object entrySchema = ((Map<String, Object>) value).get("entry_schema");
+        final Object entrySchema = getValue("entry_schema", (Map<String, Object>) value);
         if (entrySchema != null) {
             propertiesMap.put("entry_schema", entrySchema);
         }