blob: c08a4ea518383000d948e12342004485afbf3cc3 [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",
"PENDING"
]
},
"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"
]
}
}
}