Adding 'name' to yamls and json in model
[policy/models.git] / models-examples / src / main / resources / policytypes / onap.policies.Naming.yaml
index f1b9c43..a444351 100644 (file)
@@ -1,8 +1,9 @@
-tosca_definitions_version: tosca_simple_yaml_1_0_0
+tosca_definitions_version: tosca_simple_yaml_1_1_0
 policy_types:
     onap.policies.Naming:
         derived_from: tosca.policies.Root
         version: 1.0.0
+        name: onap.policies.Naming
         description: Virtual policy node for naming
         properties:
             policy-instance-name:
@@ -13,7 +14,7 @@ policy_types:
                     type: policy.data.naming-model-entity
 data_types:
     policy.data.naming-model-entity:
-        derived_from: tosca.nodes.Root
+        derived_from: tosca.datatypes.Root
         properties:
             nfRole:
                 type: string
@@ -26,7 +27,7 @@ data_types:
                 metadata:
                     matchable: true
             naming-recipe:
-                type: String
+                type: string
                 required: true
             name-operation:
                 type: string
@@ -37,7 +38,7 @@ data_types:
                 entry_schema:
                     type: policy.data.naming-property
     policy.data.naming-property:
-        derived_from: tosca.nodes.Root
+        derived_from: tosca.datatypes.Root
         properties:
             property-name:
                 type: string
@@ -96,5 +97,5 @@ data_types:
                 type: string
                 required: true
             length:
-                type: integer
+                type: string
                 required: true
\ No newline at end of file