blob: ebbdde93186a8f8e400601dc989465028f806ac9 [file] [log] [blame]
{
"$schema": "https://json-schema.org/draft/2019-09/schema",
"$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",
"type": "object",
"properties": {
"id": {
"type": "string"
},
"status" : {
"type": "string",
"enum": [
"ACCEPTED",
"REJECTED"
]
},
"details" : {
"type": "string"
}
},
"required": [
"id",
"status"
],
"additionalProperties": false
},
"CmSubscriptionDmiOutEvent" : {
"description": "The payload for subscription response event.",
"type": "object",
"javaType": "org.onap.cps.ncmp.events.cmsubscription1_0_0.dmi_to_ncmp.CmSubscriptionDmiOutEvent",
"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
}
},
"additionalProperties": false,
"required": [
"data"
]
}
}
}