CLAMP should not display all CDS workflow properties
[clamp.git] / src / test / resources / tosca / new-converter / tosca_apex_with_metadata.json
index 12edd77..4519d5c 100644 (file)
                         "title": "artifact name",
                         "type": "string",
                         "default": "baseconfiguration",
-                        "readOnly": "True"
+                        "readOnly": true
                       },
                       "artifact_version": {
                         "title": "artifact version",
                         "type": "string",
                         "default": "1.0.0",
-                        "readOnly": "True"
+                        "readOnly": true
                       },
                       "mode": {
                         "title": "mode",
                         "type": "string",
                         "default": "async",
-                        "format": "textarea"
+                        "readOnly": false
                       },
                       "data": {
                         "title": "data",
-                        "properties": {
-                          "resource-assignment-properties": {
-                            "title": "resource-assignment-properties",
-                            "type": "object",
-                            "properties": {
-                              "request-id": {
-                                "title": "request-id",
-                                "type": "string",
-                                "format": "textarea"
-                              },
-                              "service-instance-id": {
-                                "title": "service-instance-id",
-                                "type": "string",
-                                "format": "textarea"
-                              },
-                              "vnf-id": {
-                                "title": "vnf-id",
-                                "type": "string",
-                                "format": "textarea"
-                              },
-                              "action-name": {
-                                "title": "action-name",
-                                "type": "string",
-                                "format": "textarea"
-                              },
-                              "scope-type": {
-                                "title": "scope-type",
-                                "type": "string",
-                                "format": "textarea"
-                              },
-                              "hostname": {
-                                "title": "hostname",
-                                "type": "string",
-                                "format": "textarea"
-                              },
-                              "vnf_name": {
-                                "title": "vnf_name",
-                                "type": "string",
-                                "format": "textarea"
-                              }
-                            }
-                          }
-                        }
+                        "type": "string",
+                        "format": "textarea",
+                        "default": "{\"request-id\":\"\",\"service-instance-id\":\"\",\"hostname\":\"\",\"request-info\":{\"prop1\":\"\",\"prop2\":\"\"}}"
                       }
                     }
                   },
                         "title": "artifact name",
                         "type": "string",
                         "default": "baseconfiguration",
-                        "readOnly": "True"
+                        "readOnly": true
                       },
                       "artifact_version": {
                         "title": "artifact version",
                         "type": "string",
                         "default": "1.0.0",
-                        "readOnly": "True"
+                        "readOnly": true
                       },
                       "mode": {
                         "title": "mode",
                         "type": "string",
                         "default": "async",
-                        "format": "textarea"
+                        "readOnly": false
                       },
                       "data": {
                         "title": "data",
-                        "properties": {
-                          "resource-assignment-properties": {
-                            "title": "resource-assignment-properties",
-                            "type": "object",
-                            "properties": {
-                              "request-id": {
-                                "title": "request-id",
-                                "type": "string",
-                                "format": "textarea"
-                              },
-                              "service-instance-id": {
-                                "title": "service-instance-id",
-                                "type": "string",
-                                "format": "textarea"
-                              },
-                              "vnf-id": {
-                                "title": "vnf-id",
-                                "type": "string",
-                                "format": "textarea"
-                              },
-                              "action-name": {
-                                "title": "action-name",
-                                "type": "string",
-                                "format": "textarea"
-                              },
-                              "scope-type": {
-                                "title": "scope-type",
-                                "type": "string",
-                                "format": "textarea"
-                              },
-                              "hostname": {
-                                "title": "hostname",
-                                "type": "string",
-                                "format": "textarea"
-                              },
-                              "vnf_name": {
-                                "title": "vnf_name",
-                                "type": "string",
-                                "format": "textarea"
-                              }
-                            }
-                          }
-                        }
+                        "type": "string",
+                        "format": "textarea",
+                        "default": "{\"request-id\":\"\",\"service-instance-id\":\"\",\"hostname\":\"\",\"request-info\":{\"prop1\":\"\",\"prop2\":\"\"}}"
                       }
                     }
                   },
                         "title": "artifact name",
                         "type": "string",
                         "default": "baseconfiguration",
-                        "readOnly": "True"
+                        "readOnly": true
                       },
                       "artifact_version": {
                         "title": "artifact version",
                         "type": "string",
                         "default": "1.0.0",
-                        "readOnly": "True"
+                        "readOnly": true
                       },
                       "mode": {
                         "title": "mode",
                         "type": "string",
                         "default": "async",
-                        "format": "textarea"
+                        "readOnly": false
                       },
                       "data": {
                         "title": "data",
-                        "properties": {
-                          "resource-assignment-properties": {
-                            "title": "resource-assignment-properties",
-                            "type": "object",
-                            "properties": {
-                              "request-id": {
-                                "title": "request-id",
-                                "type": "string",
-                                "format": "textarea"
-                              },
-                              "service-instance-id": {
-                                "title": "service-instance-id",
-                                "type": "string",
-                                "format": "textarea"
-                              },
-                              "vnf-id": {
-                                "title": "vnf-id",
-                                "type": "string",
-                                "format": "textarea"
-                              },
-                              "action-name": {
-                                "title": "action-name",
-                                "type": "string",
-                                "format": "textarea"
-                              },
-                              "scope-type": {
-                                "title": "scope-type",
-                                "type": "string",
-                                "format": "textarea"
-                              },
-                              "hostname": {
-                                "title": "hostname",
-                                "type": "string",
-                                "format": "textarea"
-                              },
-                              "vnf_name": {
-                                "title": "vnf_name",
-                                "type": "string",
-                                "format": "textarea"
-                              }
-                            }
-                          }
-                        }
+                        "type": "string",
+                        "format": "textarea",
+                        "default": "{\"request-id\":\"\",\"service-instance-id\":\"\",\"hostname\":\"\",\"request-info\":{\"prop1\":\"\",\"prop2\":\"\"}}"
                       }
                     }
                   },
                         "title": "artifact name",
                         "type": "string",
                         "default": "baseconfiguration",
-                        "readOnly": "True"
+                        "readOnly": true
                       },
                       "artifact_version": {
                         "title": "artifact version",
                         "type": "string",
                         "default": "1.0.0",
-                        "readOnly": "True"
+                        "readOnly": true
                       },
                       "mode": {
                         "title": "mode",
                         "type": "string",
                         "default": "async",
-                        "format": "textarea"
+                        "readOnly": false
                       },
                       "data": {
                         "title": "data",
-                        "properties": {
-                          "resource-assignment-properties": {
-                            "title": "resource-assignment-properties",
-                            "type": "object",
-                            "properties": {
-                              "request-id": {
-                                "title": "request-id",
-                                "type": "string",
-                                "format": "textarea"
-                              },
-                              "service-instance-id": {
-                                "title": "service-instance-id",
-                                "type": "string",
-                                "format": "textarea"
-                              },
-                              "vnf-id": {
-                                "title": "vnf-id",
-                                "type": "string",
-                                "format": "textarea"
-                              },
-                              "action-name": {
-                                "title": "action-name",
-                                "type": "string",
-                                "format": "textarea"
-                              },
-                              "scope-type": {
-                                "title": "scope-type",
-                                "type": "string",
-                                "format": "textarea"
-                              },
-                              "hostname": {
-                                "title": "hostname",
-                                "type": "string",
-                                "format": "textarea"
-                              },
-                              "vnf_name": {
-                                "title": "vnf_name",
-                                "type": "string",
-                                "format": "textarea"
-                              }
-                            }
-                          }
-                        }
+                        "type": "string",
+                        "format": "textarea",
+                        "default": "{\"request-id\":\"\",\"service-instance-id\":\"\",\"hostname\":\"\",\"request-info\":{\"prop1\":\"\",\"prop2\":\"\"}}"
                       }
                     }
                   },
                         "title": "artifact name",
                         "type": "string",
                         "default": "baseconfiguration",
-                        "readOnly": "True"
+                        "readOnly": true
                       },
                       "artifact_version": {
                         "title": "artifact version",
                         "type": "string",
                         "default": "1.0.0",
-                        "readOnly": "True"
+                        "readOnly": true
                       },
                       "mode": {
                         "title": "mode",
                         "type": "string",
                         "default": "async",
-                        "format": "textarea"
+                        "readOnly": false
                       },
                       "data": {
                         "title": "data",
-                        "properties": {
-                          "resource-assignment-properties": {
-                            "title": "resource-assignment-properties",
-                            "type": "object",
-                            "properties": {
-                              "request-id": {
-                                "title": "request-id",
-                                "type": "string",
-                                "format": "textarea"
-                              },
-                              "service-instance-id": {
-                                "title": "service-instance-id",
-                                "type": "string",
-                                "format": "textarea"
-                              },
-                              "vnf-id": {
-                                "title": "vnf-id",
-                                "type": "string",
-                                "format": "textarea"
-                              },
-                              "action-name": {
-                                "title": "action-name",
-                                "type": "string",
-                                "format": "textarea"
-                              },
-                              "scope-type": {
-                                "title": "scope-type",
-                                "type": "string",
-                                "format": "textarea"
-                              },
-                              "hostname": {
-                                "title": "hostname",
-                                "type": "string",
-                                "format": "textarea"
-                              },
-                              "vnf_name": {
-                                "title": "vnf_name",
-                                "type": "string",
-                                "format": "textarea"
-                              }
-                            }
-                          }
-                        }
+                        "type": "string",
+                        "format": "textarea",
+                        "default": "{\"request-id\":\"\",\"service-instance-id\":\"\",\"hostname\":\"\",\"request-info\":{\"prop1\":\"\",\"prop2\":\"\"}}"
                       }
                     }
                   },
                         "title": "artifact name",
                         "type": "string",
                         "default": "baseconfiguration",
-                        "readOnly": "True"
+                        "readOnly": true
                       },
                       "artifact_version": {
                         "title": "artifact version",
                         "type": "string",
                         "default": "1.0.0",
-                        "readOnly": "True"
+                        "readOnly": true
                       },
                       "mode": {
                         "title": "mode",
                         "type": "string",
                         "default": "async",
-                        "format": "textarea"
+                        "readOnly": false
                       },
                       "data": {
                         "title": "data",
-                        "properties": {
-                          "resource-assignment-properties": {
-                            "title": "resource-assignment-properties",
-                            "type": "object",
-                            "properties": {
-                              "request-id": {
-                                "title": "request-id",
-                                "type": "string",
-                                "format": "textarea"
-                              },
-                              "service-instance-id": {
-                                "title": "service-instance-id",
-                                "type": "string",
-                                "format": "textarea"
-                              },
-                              "vnf-id": {
-                                "title": "vnf-id",
-                                "type": "string",
-                                "format": "textarea"
-                              },
-                              "action-name": {
-                                "title": "action-name",
-                                "type": "string",
-                                "format": "textarea"
-                              },
-                              "scope-type": {
-                                "title": "scope-type",
-                                "type": "string",
-                                "format": "textarea"
-                              },
-                              "hostname": {
-                                "title": "hostname",
-                                "type": "string",
-                                "format": "textarea"
-                              },
-                              "vnf_name": {
-                                "title": "vnf_name",
-                                "type": "string",
-                                "format": "textarea"
-                              }
-                            }
-                          }
-                        }
+                        "type": "string",
+                        "format": "textarea",
+                        "default": "{\"request-id\":\"\",\"service-instance-id\":\"\",\"hostname\":\"\",\"request-info\":{\"prop1\":\"\",\"prop2\":\"\"}}"
                       }
                     }
                   }
                     "type": "object",
                     "description": "Map of values that identify the resource. If none are provided, it is assumed that the\nentity that generated the ONSET event will be the target.\n",
                     "anyOf": [
+                      {
+                        "title": "User defined",
+                        "properties": {}
+                      },
                       {
                         "title": "VNF-vLoadBalancerMS 0",
                         "properties": {
                           "resourceID": {
                             "title": "Resource ID",
                             "type": "string",
-                            "default": "vLoadBalancerMS",
+                            "default": "1a31b9f2-e50d-43b7-89b3-a040250cf506",
                             "readOnly": "True"
                           }
                         }