{
"$schema": "https://json-schema.org/draft/2019-09/schema",
"$id": "urn:cps:org.onap.cps:data-updated-event-schema:1.0.0-SNAPSHOT",
"$ref": "#/definitions/CpsDataUpdatedEvent",
"definitions": {
"CpsDataUpdatedEvent": {
"title": "CpsDataUpdatedEvent",
"description": "A CPS data updated event.",
"type": "object",
"properties": {
"schema": {
"const": "urn:cps:org.onap.cps:data-updated-event-schema:1.0.0-SNAPSHOT",
"description": "The schema, including its version, that the event adheres to."
},
"id": {
"type": "string",
"description": "The unique id identifying the event for the specified source. Producers must ensure that source + id is unique for each distinct event."
},
"source": {
"type": "string",
"format": "uri",
"description": "The source of the event. Producers must ensure that source + id is unique for each distinct event."
},
"type": {
"type": "string",
"description": "The type of the event."
},
"content": {
"$ref": "#/definitions/Content"
}
},
"required": [
"schema",
"id",
"source",
"type",
"content"
],
"additionalProperties": false
},
"Content": {
"title": "Content",
"description": "The event content.",
"type": "object",
"properties": {
"timestamp": {
"type": "string"
},
"coreReferences": {
"$ref": "#/definitions/CoreReferencesCoreReferenceList"
},
"data": {
"$ref": "#/definitions/Data"
}
},
"additionalProperties": false
},
"CoreReferencesCoreReferenceList": {
"title": "CoreReferencesCoreReferenceList",
"description": "All CPS coreCore references for data.",
"type": "object",
"properties": {
"dataspace": {
"$ref": "#/definitions/CoreReference"
},
"schemaSet": {
"$ref": "#/definitions/CoreReference"
},
"anchor": {
"$ref": "#/definitions/CoreReference"
}
},
"additionalProperties": false
},
"CoreReference": {
"title": "CoreReference",
"description": "A CPS coreCore reference for data.",
"type": "object",
"properties": {
"id": {
"type": "string",
"description": "The unique id identifying the reference."
},
"name": {
"type": "string",
"description": "The name of the reference."
}
},
"additionalProperties": false
},
"Data": {
"title": "Data",
"description": "The json data content payload",
"type": "object"
}
}
}
|