From dee57e7e416bbcbd1fcbcf5acc905a679666af28 Mon Sep 17 00:00:00 2001 From: imamSidero Date: Thu, 15 Jun 2023 12:32:37 +0100 Subject: Bug fix for the get input tosca function of list of nested complex type Fixed bug regarding tosca function for list of nested complex type Issue-ID: SDC-4538 Signed-off-by: Imam hussain Change-Id: I41adff984d7b7bb0f968c4ed3a24c895a546a7b9 --- .../elements/ToscaFunctionJsonDeserializer.java | 22 +++++++--------------- 1 file changed, 7 insertions(+), 15 deletions(-) (limited to 'common-be/src/main/java') diff --git a/common-be/src/main/java/org/openecomp/sdc/be/datatypes/elements/ToscaFunctionJsonDeserializer.java b/common-be/src/main/java/org/openecomp/sdc/be/datatypes/elements/ToscaFunctionJsonDeserializer.java index e234a4666f..9671eee217 100644 --- a/common-be/src/main/java/org/openecomp/sdc/be/datatypes/elements/ToscaFunctionJsonDeserializer.java +++ b/common-be/src/main/java/org/openecomp/sdc/be/datatypes/elements/ToscaFunctionJsonDeserializer.java @@ -159,23 +159,15 @@ public class ToscaFunctionJsonDeserializer extends StdDeserializer { + String indexValue = nodeValue.asText(); + if (StringUtils.isNumeric(indexValue)) { + toscaIndexList.add(Integer.parseInt(indexValue)); } else { - toscaIndexList.add(textValue); + toscaIndexList.add(indexValue); } - } + }); } return toscaIndexList; } -- cgit 1.2.3-korg