Skip to content

Commit 0732ebf

Browse files
committed
error schema
1 parent ea55d41 commit 0732ebf

File tree

2 files changed

+72
-1
lines changed

2 files changed

+72
-1
lines changed
Lines changed: 71 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -0,0 +1,71 @@
1+
{
2+
"$schema": "http://json-schema.org/draft-07/schema",
3+
"$id": "#/schemas/errorschema",
4+
"type": "object",
5+
"default": {},
6+
"additionalProperties": true,
7+
"required": [
8+
"deviceId",
9+
"moduleId",
10+
"messageType",
11+
"errorCode",
12+
"errorSeverity",
13+
"errorStatus",
14+
"timestamp"
15+
],
16+
"properties": {
17+
"deviceId": {
18+
"$id": "#/properties/deviceId",
19+
"type": "string",
20+
"default": "",
21+
"examples": [
22+
""
23+
]
24+
},
25+
"moduleId": {
26+
"$id": "#/properties/moduleId",
27+
"type": "string",
28+
"default": "",
29+
"examples": [
30+
""
31+
]
32+
},
33+
"messageType": {
34+
"$id": "#/properties/messageType",
35+
"type": "string",
36+
"default": "",
37+
"examples": [
38+
"error"
39+
]
40+
},
41+
"errorCode": {
42+
"$id": "#/properties/errorCode",
43+
"type": "string",
44+
"default": "",
45+
"examples": [
46+
"code"
47+
]
48+
},
49+
"errorSeverity": {
50+
"$id": "#/properties/errorSeverity",
51+
"type": "string",
52+
"default": "",
53+
"examples": [
54+
"severity"
55+
]
56+
},
57+
"errorStatus": {
58+
"$id": "#/properties/errorStatus",
59+
"type": "string",
60+
"default": "",
61+
"examples": [
62+
"status"
63+
]
64+
},
65+
"errorDate": {
66+
"$id": "#/properties/timestamp",
67+
"type": "string",
68+
"format": "date-tilme"
69+
}
70+
}
71+
}

message-types/schemas/measureddataschema.json

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -1,6 +1,6 @@
11
{
22
"$schema": "http://json-schema.org/draft-07/schema",
3-
"$id": "#/schemas/measureddataschema.json",
3+
"$id": "#/schemas/measureddataschema",
44
"type": "object",
55
"title": "Measured data message type schema",
66
"description": "Proposal of a generic type of schema.",

0 commit comments

Comments
 (0)