blob: 308e3068d6f61cca1699fb4d1ad0fe382aa498bd [file] [log] [blame]
raviteja.karumurie9ac24f2023-04-13 23:44:41 +01001{
2 "$schema": "https://json-schema.org/draft/2019-09/schema",
sourabh_sourabhf4c3f0f2023-06-08 15:25:33 +01003 "$id": "urn:cps:org.onap.cps.ncmp.events.async:data-operation-event-schema:1.0.0",
4 "$ref": "#/definitions/DataOperationEvent",
raviteja.karumurie9ac24f2023-04-13 23:44:41 +01005 "definitions": {
sourabh_sourabhf4c3f0f2023-06-08 15:25:33 +01006 "DataOperationEvent": {
7 "description": "The payload of data operation event.",
raviteja.karumurie9ac24f2023-04-13 23:44:41 +01008 "type": "object",
sourabh_sourabhf4c3f0f2023-06-08 15:25:33 +01009 "javaType" : "org.onap.cps.ncmp.events.async1_0_0.DataOperationEvent",
raviteja.karumurie9ac24f2023-04-13 23:44:41 +010010 "properties": {
sourabh_sourabhf4c3f0f2023-06-08 15:25:33 +010011 "data": {
raviteja.karumurie9ac24f2023-04-13 23:44:41 +010012 "description": "The payload content of the requested data.",
13 "type": "object",
raviteja.karumurie9ac24f2023-04-13 23:44:41 +010014 "properties": {
sourabh_sourabhf4c3f0f2023-06-08 15:25:33 +010015 "responses": {
raviteja.karumurie9ac24f2023-04-13 23:44:41 +010016 "description": "An array of batch responses which contains both success and failure",
17 "type": "array",
18 "items": {
19 "type": "object",
20 "properties": {
21 "operationId": {
22 "description": "Used to distinguish multiple operations using same cmhandleId",
23 "type": "string"
24 },
25 "ids": {
26 "description": "Id's of the cmhandles",
27 "type": "array"
28 },
sourabh_sourabhf4c3f0f2023-06-08 15:25:33 +010029 "statusCode": {
raviteja.karumurie9ac24f2023-04-13 23:44:41 +010030 "description": "which says success or failure (0-99) are for success and (100-199) are for failure",
31 "type": "string"
32 },
sourabh_sourabhf4c3f0f2023-06-08 15:25:33 +010033 "statusMessage": {
raviteja.karumurie9ac24f2023-04-13 23:44:41 +010034 "description": "Human readable message, Which says what the response has",
35 "type": "string"
36 },
sourabh_sourabhf4c3f0f2023-06-08 15:25:33 +010037 "responseContent": {
raviteja.karumurie9ac24f2023-04-13 23:44:41 +010038 "description": "Contains the requested data response.",
39 "type": "object",
40 "existingJavaType": "java.lang.Object",
41 "additionalProperties": false
42 }
43 },
44 "required": [
45 "operationId",
46 "ids",
sourabh_sourabhf4c3f0f2023-06-08 15:25:33 +010047 "statusCode",
48 "statusMessage"
raviteja.karumurie9ac24f2023-04-13 23:44:41 +010049 ],
50 "additionalProperties": false
51 }
52 }
53 },
54 "required": [
sourabh_sourabhf4c3f0f2023-06-08 15:25:33 +010055 "responses"
raviteja.karumurie9ac24f2023-04-13 23:44:41 +010056 ],
57 "additionalProperties": false
58 }
59 },
60 "required": [
sourabh_sourabhf4c3f0f2023-06-08 15:25:33 +010061 "data"
raviteja.karumurie9ac24f2023-04-13 23:44:41 +010062 ],
63 "additionalProperties": false
64 }
65 }
66}