diff options
Diffstat (limited to 'cps-ncmp-events/src/main/resources/schemas/cmsubscription/cm-subscription-dmi-out-event-schema-1.0.0.json')
-rw-r--r-- | cps-ncmp-events/src/main/resources/schemas/cmsubscription/cm-subscription-dmi-out-event-schema-1.0.0.json | 72 |
1 files changed, 23 insertions, 49 deletions
diff --git a/cps-ncmp-events/src/main/resources/schemas/cmsubscription/cm-subscription-dmi-out-event-schema-1.0.0.json b/cps-ncmp-events/src/main/resources/schemas/cmsubscription/cm-subscription-dmi-out-event-schema-1.0.0.json index ebbdde9318..5ae6225be6 100644 --- a/cps-ncmp-events/src/main/resources/schemas/cmsubscription/cm-subscription-dmi-out-event-schema-1.0.0.json +++ b/cps-ncmp-events/src/main/resources/schemas/cmsubscription/cm-subscription-dmi-out-event-schema-1.0.0.json @@ -3,67 +3,41 @@ "$id": "urn:cps:org.onap.cps.ncmp.events:cm-subscription-dmi-out-event-schema:1.0.0", "$ref": "#/definitions/CmSubscriptionDmiOutEvent", "definitions": { - "SubscriptionStatus": { - "description": "The subscription status information", + "CmSubscriptionDmiOutEvent": { + "description": "The payload for cm subscription merge event coming out from DMI Plugin.", "type": "object", + "additionalProperties": false, + "javaType": "org.onap.cps.ncmp.events.cmsubscription_merge1_0_0.dmi_to_ncmp.CmSubscriptionDmiOutEvent", "properties": { - "id": { - "type": "string" - }, - "status" : { - "type": "string", - "enum": [ - "ACCEPTED", - "REJECTED" - ] - }, - "details" : { - "type": "string" + "data": { + "$ref": "#/definitions/Data" } }, "required": [ - "id", - "status" + "data" ], - "additionalProperties": false + "title": "CmSubscriptionDmiOutEvent" }, - "CmSubscriptionDmiOutEvent" : { - "description": "The payload for subscription response event.", + "Data": { "type": "object", - "javaType": "org.onap.cps.ncmp.events.cmsubscription1_0_0.dmi_to_ncmp.CmSubscriptionDmiOutEvent", + "description": "Information about the targets and subscription", + "additionalProperties": false, "properties": { - "data": { - "type": "object", - "properties": { - "clientId": { - "type": "string" - }, - "subscriptionName": { - "type": "string" - }, - "dmiName": { - "type": "string" - }, - "subscriptionStatus": { - "type": "array", - "items": { - "$ref": "#/definitions/SubscriptionStatus" - } - } - }, - "required": [ - "clientId", - "subscriptionName", - "dmiName", - "subscriptionStatus" - ], - "additionalProperties": false + "statusCode": { + "type": "string", + "format": "integer", + "description": "The common status as defined in CPS" + }, + "statusMessage": { + "type": "string", + "description": "The common status message as defined in CPS" } }, - "additionalProperties": false, "required": [ - "data" - ] + "statusCode", + "statusMessage" + ], + "title": "Data" } } }
\ No newline at end of file |