aboutsummaryrefslogtreecommitdiffstats
path: root/common-be/src/test/resources/toscaFunctionJsonDeserializer/customFunction.json
blob: 0042975e29158b3a68d7f8b9a341a9eec556209e (plain)
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
18
19
20
21
22
23
24
25
26
27
28
29
30
31
32
33
34
35
36
37
38
39
40
41
42
43
44
45
{
  "type": "CUSTOM",
  "name": "first_custom_function_name",
  "parameters": [
    {
      "type": "STRING",
      "value": "string1"
    },
    {
      "type": "GET_ATTRIBUTE",
      "propertyUniqueId": "36897651-f5e5-4603-8064-b60c771a3c37.descriptor_id",
      "propertyName": "descriptor_id",
      "propertySource": "SELF",
      "sourceUniqueId": "36897651-f5e5-4603-8064-b60c771a3c37",
      "sourceName": "testService",
      "functionType": "GET_ATTRIBUTE",
      "propertyPathFromSource": [
        "descriptor_id"
      ]
    },
    {
      "type": "CUSTOM",
      "name": "second_custom_function_name",
      "parameters": [
        {
          "type": "CONCAT",
          "parameters": [
            {
              "type": "STRING",
              "value": "string2"
            },
            {
              "type": "YAML",
              "value": "myList: [1, two, three three]\nget_something: [SELF, something]\nstring: this is my string\n"
            }
          ]
        },
        {
          "type": "STRING",
          "value": "string3"
        }
      ]
    }
  ]
}