From 183a22c664b4cd11072901ea3854c56e9256facc Mon Sep 17 00:00:00 2001 From: emaclee Date: Wed, 13 Dec 2023 00:41:31 +0000 Subject: Moving and Renaming eexisting subscription impl -renamed the existing subscription related packages to have 'deprecated' on its name as this shall be removed with new implementation of the subscription positive cases - replaced the existing schemas with the new ones Issue-ID: CPS-1991 Signed-off-by: emaclee Change-Id: I8f27861b80756540477e03971c53219ea589975c --- ...cm-subscription-dmi-out-event-schema-1.0.0.json | 72 +++++++--------------- 1 file changed, 23 insertions(+), 49 deletions(-) (limited to 'cps-ncmp-events/src/main/resources/schemas/cmsubscription/cm-subscription-dmi-out-event-schema-1.0.0.json') 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 -- cgit 1.2.3-korg