Merge "Introducing DELETING and DELETED Cmhandle State"
[cps.git] / cps-ncmp-events / src / main / resources / schemas / ncmp-event-schema-v1.json
index 84fc12e..8685034 100644 (file)
@@ -26,8 +26,7 @@
         },
         "eventSource": {
           "description": "The source of the event.",
-          "type": "string",
-          "format": "uri"
+          "type": "string"
         },
         "eventType": {
           "description": "The type of the event.",
@@ -35,8 +34,7 @@
         },
         "eventSchema": {
           "description": "The schema, including its version, that this event adheres to.",
-          "type": "string",
-          "format": "uri"
+          "type": "string"
         },
         "event": {
           "$ref": "#/definitions/Event"
           "description": "cmHandle id",
           "type": "string"
         },
-        "operation": {
-          "description": "The name of the Operation that triggered this event.",
-          "type": "string",
-          "enum": ["CREATE", "UPDATE", "DELETE"]
-        },
         "cmhandle-state": {
           "description": "State of cmHandle.",
           "type": "string",
-          "enum": ["ADVISED", "READY", "LOCKED"]
+          "enum": ["ADVISED", "READY", "LOCKED", "DELETING", "DELETED"]
         },
         "cmhandle-properties": {
           "description": "cmHandle properties as json object.",
           "type": "object",
+          "default": null,
           "existingJavaType": "java.util.List<java.util.Map<String,String>>",
           "additionalProperties": false
         }