Minor changes in Operational schemas 85/101285/1
authorjhh <jorge.hernandez-herrero@att.com>
Thu, 6 Feb 2020 21:17:20 +0000 (15:17 -0600)
committerjhh <jorge.hernandez-herrero@att.com>
Thu, 6 Feb 2020 21:17:20 +0000 (15:17 -0600)
Moved as test resources, these schemas will go together with
its control loop application in the drools-applications
repo, to keep separation between control loop apps and core
drools.

Issue-ID: POLICY-2345
Signed-off-by: jhh <jorge.hernandez-herrero@att.com>
Change-Id: I4d78474eedd2f2981907388936312c436e1cb70b

feature-lifecycle/src/main/resources/schemas/onap.policies.drools.Controller-1.0.0.schema.json
feature-lifecycle/src/test/resources/schemas/onap.policies.controlloop.Operational-1.0.0.schema.json [moved from feature-lifecycle/src/main/resources/schemas/onap.policies.controlloop.Operational-1.0.0.schema.json with 100% similarity]
feature-lifecycle/src/test/resources/schemas/onap.policies.controlloop.operational.common.Drools-1.0.0.schema.json [moved from feature-lifecycle/src/main/resources/schemas/onap.policies.controlloop.operational.common.Drools-1.0.0.schema.json with 94% similarity]

index e07a3e1..d638e3b 100644 (file)
                 "customConfig": {
                     "$id": "#/properties/properties/properties/customConfig",
                     "type": "object",
-                    "title": "other Configuration"
+                    "title": "other Configuration",
+                    "additionalProperties": {
+                        "type": "string"
+                    }
                 }
             }
         }
                         "uniqueItems": true,
                         "required": [
                             "id",
-                            "description",
                             "operation",
                             "timeout",
                             "retries",
                             "success",
-                            "failure",
-                            "failure_timeout",
-                            "failure_retries",
-                            "failure_exception",
-                            "failure_guard"
+                            "failure"
                         ],
                         "properties": {
                             "id": {
                                 "title": "Operation",
                                 "required": [
                                     "actor",
-                                    "recipe",
+                                    "operation",
                                     "target"
                                 ],
                                 "properties": {
                                         ],
                                         "pattern": "^(.+)$"
                                     },
-                                    "recipe": {
-                                        "$id": "#/properties/properties/properties/operations/items/properties/operation/properties/recipe",
+                                    "operation": {
+                                        "$id": "#/properties/properties/properties/operations/items/properties/operation/properties/operation",
                                         "type": "string",
-                                        "title": "Recipe",
+                                        "title": "Operation Name",
                                         "examples": [
                                             "Restart"
                                         ],
                                                 "pattern": "^(.+)$"
                                             }
                                         }
+                                    },
+                                    "payload": {
+                                        "$id": "#/properties/properties/properties/operations/items/properties/operation/properties/payload",
+                                        "type": "object",
+                                        "title": "Payload",
+                                        "additionalProperties": {
+                                            "type": "string"
+                                        }
                                     }
                                 }
                             },
                             "failure_retries": {
                                 "$id": "#/properties/properties/properties/operations/items/properties/failure_retries",
                                 "type": "string",
-                                "title": "Failure Retries Treatment",
+                                "title": "Failure Retry Treatment",
                                 "default": "final_failure_retries",
                                 "examples": [
                                     "final_failure_retries",