Merge "Improve 32K limit tests"
[cps.git] / docs / schemas / data-operation-event-schema-1.0.0.json
1 {
2   "$schema": "https://json-schema.org/draft/2019-09/schema",
3   "$id": "urn:cps:org.onap.cps.ncmp.events.async:data-operation-event-schema:1.0.0",
4   "$ref": "#/definitions/DataOperationEvent",
5   "definitions": {
6     "DataOperationEvent": {
7       "description": "The payload of data operation event.",
8       "type": "object",
9       "javaType" : "org.onap.cps.ncmp.events.async1_0_0.DataOperationEvent",
10       "properties": {
11         "data": {
12           "description": "The payload content of the requested data.",
13           "type": "object",
14           "properties": {
15             "responses": {
16               "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 handle ids",
23                     "type": "string"
24                   },
25                   "ids": {
26                     "description": "Id's of the cmhandles",
27                     "type": "array",
28                     "items": {
29                       "type": "string"
30                     }
31                   },
32                   "statusCode": {
33                     "description": "which says success or failure (0-99) are for success and (100-199) are for failure",
34                     "type": "string"
35                   },
36                   "statusMessage": {
37                     "description": "Human readable message, Which says what the response has",
38                     "type": "string"
39                   },
40                   "result": {
41                     "description": "Contains the requested data response.",
42                     "type": "object",
43                     "existingJavaType": "java.lang.Object",
44                     "additionalProperties": false
45                   }
46                 },
47                 "required": [
48                   "operationId",
49                   "ids",
50                   "statusCode",
51                   "statusMessage"
52                 ],
53                 "additionalProperties": false
54               }
55             }
56           },
57           "required": [
58             "responses"
59           ],
60           "additionalProperties": false
61         }
62       },
63       "required": [
64         "data"
65       ],
66       "additionalProperties": false
67     }
68   }
69 }