return this.toscaGetFunctionType != null || this.toscaFunction != null;
     }
 
-
     @JsonIgnoreProperties
     public boolean isToscaGetFunction() {
         return this.toscaFunction != null
 
     }
 
     private Map<String, Object> buildGetInputFunctionValue() {
-        List<Object> propertySourceCopy = new ArrayList<Object>(this.propertyPathFromSource);
-        List<Object> propertySourceOneCopy = new ArrayList<>();
+        final List<Object> propertySourceCopy = new ArrayList<>(this.propertyPathFromSource);
+        final List<Object> propertySourceOneCopy = new ArrayList<>();
         propertySourceOneCopy.add(this.propertyPathFromSource.get(0));
         if (CollectionUtils.isNotEmpty(toscaIndexList)) {
             propertySourceCopy.addAll(toscaIndexList);
             propertySourceOneCopy.addAll(toscaIndexList);
         }
         if (this.propertyPathFromSource.size() == 1) {
-            return Map.of(this.functionType.getFunctionName(), propertySourceOneCopy);
+            return Map.of(functionType.getFunctionName(), propertySourceOneCopy.size() == 1 ? propertySourceOneCopy.get(0) : propertySourceOneCopy);
+        } else {
+            return Map.of(functionType.getFunctionName(), propertySourceCopy.size() == 1 ? propertySourceCopy.get(0) : propertySourceCopy);
         }
-        return Map.of(this.functionType.getFunctionName(), propertySourceCopy);
     }
 
     @Override
 
         assertEquals(1, yamlMap.size());
         final Object customFunctionGetInputValue = yamlMap.get("$" + ((ToscaCustomFunction) toscaFunction).getName());
         assertTrue(customFunctionGetInputValue instanceof ArrayList);
-        ArrayList<Object> customFunctionGetInputValueList = (ArrayList<Object>) customFunctionGetInputValue;
-        assertEquals(1, customFunctionGetInputValueList.size());
-        assertEquals(1, customFunctionGetInputValueList.size());
-        assertEquals("controller_actor", customFunctionGetInputValueList.get(0));
+        List<Object> customFunctionGetInputValueList = (ArrayList<Object>) customFunctionGetInputValue;
+        assertEquals(4, customFunctionGetInputValueList.size());
+        assertEquals("pLMNInfoList", customFunctionGetInputValueList.get(0));
+        assertEquals(1, customFunctionGetInputValueList.get(1));
+        assertEquals("snssai", customFunctionGetInputValueList.get(2));
+        assertEquals("sd", customFunctionGetInputValueList.get(3));
 
         List<ToscaFunctionParameter> parameters = toscaCustomFunction.getParameters();
         assertEquals(1, parameters.size());
         final ToscaGetFunctionDataDefinition toscaGetFunction = (ToscaGetFunctionDataDefinition) paramFunction;
         assertEquals(ToscaFunctionType.GET_INPUT, toscaGetFunction.getType());
         assertEquals(ToscaGetFunctionType.GET_INPUT, toscaGetFunction.getFunctionType());
-        assertEquals("dd0ec4d2-7e74-4d92-af2f-89c7436baa63.controller_actor", toscaGetFunction.getPropertyUniqueId());
+        assertEquals("dd0ec4d2-7e74-4d92-af2f-89c7436baa63.pLMNInfoList", toscaGetFunction.getPropertyUniqueId());
         assertEquals(PropertySource.SELF, toscaGetFunction.getPropertySource());
-        assertEquals("controller_actor", toscaGetFunction.getPropertyName());
+        assertEquals("pLMNInfoList", toscaGetFunction.getPropertyName());
         assertEquals("testService", toscaGetFunction.getSourceName());
         assertEquals("dd0ec4d2-7e74-4d92-af2f-89c7436baa63", toscaGetFunction.getSourceUniqueId());
-        assertEquals(List.of("controller_actor"), toscaGetFunction.getPropertyPathFromSource());
+        assertEquals(List.of("pLMNInfoList"), toscaGetFunction.getPropertyPathFromSource());
     }
 
     private void setDefaultCustomToscaFunctionOnConfiguration() {
     private ToscaFunction parseToscaFunction(final String toscaFunctionJson) throws JsonProcessingException {
         return new ObjectMapper().readValue(toscaFunctionJson, ToscaFunction.class);
     }
-}
\ No newline at end of file
+}
 
         final Map<?, ?> getInputJsonAsMap = convertJsonStringToMap(actualValue);
         assertTrue(getInputJsonAsMap.containsKey(ToscaGetFunctionType.GET_INPUT.getFunctionName()));
         final Object value = getInputJsonAsMap.get(ToscaGetFunctionType.GET_INPUT.getFunctionName());
-        assertTrue(value instanceof List);
-        assertEquals(((List<String>)value).get(0), propertyName);
+        assertTrue(value instanceof String);
+        assertEquals(value, propertyName);
     }
 
     @Test
     }
 
     @ParameterizedTest
-    @EnumSource(value =  ToscaGetFunctionType.class, names = {"GET_ATTRIBUTE", "GET_PROPERTY"})
+    @EnumSource(value = ToscaGetFunctionType.class, names = {"GET_ATTRIBUTE", "GET_PROPERTY"})
     void generateValueForGetFunctionWithSelfAsSourceTest(final ToscaGetFunctionType toscaFunction) {
         //given
         final var toscaGetFunction = createGetFunction(toscaFunction, PropertySource.SELF, List.of("property"), null);
     }
 
     @ParameterizedTest
-    @EnumSource(value =  ToscaGetFunctionType.class, names = {"GET_ATTRIBUTE", "GET_PROPERTY"})
+    @EnumSource(value = ToscaGetFunctionType.class, names = {"GET_ATTRIBUTE", "GET_PROPERTY"})
     void generateValueForGetFunctionWithInstanceAsSourceTest(final ToscaGetFunctionType toscaFunction) {
         //given
         final var toscaGetFunction = createGetFunction(toscaFunction, PropertySource.INSTANCE, List.of("property"), "sourceName");
         final Gson gson = new Gson();
         return gson.fromJson(actualValue, Map.class);
     }
-}
\ No newline at end of file
+}
 
   "name": "custom_function_get_input_type",
   "parameters": [
     {
-      "propertyUniqueId": "dd0ec4d2-7e74-4d92-af2f-89c7436baa63.controller_actor",
-      "propertyName": "controller_actor",
+      "propertyUniqueId": "dd0ec4d2-7e74-4d92-af2f-89c7436baa63.pLMNInfoList",
+      "propertyName": "pLMNInfoList",
       "propertySource": "SELF",
       "sourceUniqueId": "dd0ec4d2-7e74-4d92-af2f-89c7436baa63",
       "sourceName": "testService",
       "functionType": "GET_INPUT",
       "propertyPathFromSource": [
-        "controller_actor"
+        "pLMNInfoList"
       ],
-      "type": "GET_INPUT"
+      "type": "GET_INPUT",
+      "toscaIndexList": [
+        "1",
+        "snssai",
+        "sd"
+      ]
     }
   ]
-}
\ No newline at end of file
+}