1+ {
2+ "$schema" : " http://json-schema.org/draft-07/schema" ,
3+ "$id" : " #/schemas/measureddataschema.json" ,
4+ "type" : " object" ,
5+ "title" : " Measured data message type schema" ,
6+ "description" : " Proposal of a generic type of schema." ,
7+ "default" : {},
8+ "additionalProperties" : true ,
9+ "required" : [
10+ " deviceId" ,
11+ " moduleId" ,
12+ " messageType" ,
13+ " messageCreationDate" ,
14+ " messageTransmissionDate" ,
15+ " data"
16+ ],
17+ "properties" : {
18+ "deviceId" : {
19+ "$id" : " #/properties/deviceId" ,
20+ "type" : " string" ,
21+ "default" : " " ,
22+ "examples" : [
23+ " "
24+ ]
25+ },
26+ "moduleId" : {
27+ "$id" : " #/properties/moduleId" ,
28+ "type" : " string" ,
29+ "default" : " " ,
30+ "examples" : [
31+ " "
32+ ]
33+ },
34+ "messageType" : {
35+ "$id" : " #/properties/messageType" ,
36+ "type" : " string" ,
37+ "default" : " " ,
38+ "examples" : [
39+ " data"
40+ ]
41+ },
42+ "messageCreationDate" : {
43+ "$id" : " #/properties/messagecreationdate" ,
44+ "type" : " string" ,
45+ "format" : " date-time"
46+ },
47+ "messageTransmissionDate" : {
48+ "$id" : " #/properties/messagetransmissiondate" ,
49+ "type" : " string" ,
50+ "format" : " date-time"
51+ },
52+ "data" : {
53+ "$id" : " #/properties/data" ,
54+ "type" : " array" ,
55+ "default" : [],
56+ "examples" : [
57+ [
58+ {
59+ "propertyValue" : 35.0 ,
60+ "propertyDivFactor" : 1.0 ,
61+ "propertyMeasureDate" : 0.0 ,
62+ "propertyName" : " P1" ,
63+ "propertyUnit" : " T"
64+ },
65+ {
66+ "propertyName" : " P2" ,
67+ "propertyUnit" : " U" ,
68+ "propertyValue" : 1566.0 ,
69+ "propertyDivFactor" : 10.0 ,
70+ "propertyMeasureDate" : 0.0
71+ }
72+ ]
73+ ],
74+ "additionalItems" : true ,
75+ "items" : {
76+ "$id" : " #/properties/data/items" ,
77+ "type" : " object" ,
78+ "default" : {},
79+ "examples" : [
80+ {
81+ "propertyUnit" : " T" ,
82+ "propertyValue" : 35.0 ,
83+ "propertyDivFactor" : 1.0 ,
84+ "propertyMeasureDate" : 0.0 ,
85+ "propertyName" : " P1"
86+ },
87+ {
88+ "propertyName" : " P2" ,
89+ "propertyUnit" : " U" ,
90+ "propertyValue" : 1566.0 ,
91+ "propertyDivFactor" : 10.0 ,
92+ "propertyMeasureDate" : 0.0
93+ }
94+ ],
95+ "additionalProperties" : true ,
96+ "required" : [
97+ " propertyMeasureDate" ,
98+ " propertyName" ,
99+ " propertyValue" ,
100+ " propertyUnit" ,
101+ " propertyDivFactor"
102+ ],
103+ "properties" : {
104+ "propertyMeasureDate" : {
105+ "$id" : " #/properties/data/items/properties/propertymeasuredate" ,
106+ "type" : " string" ,
107+ "format" : " date-time"
108+ },
109+ "propertyName" : {
110+ "$id" : " #/properties/data/items/properties/propertyName" ,
111+ "type" : " string" ,
112+ "default" : " " ,
113+ "examples" : [
114+ " P1"
115+ ]
116+ },
117+ "propertyValue" : {
118+ "$id" : " #/properties/data/items/properties/propertyValue" ,
119+ "type" : " number" ,
120+ "default" : 0 ,
121+ "examples" : [
122+ 35.0
123+ ]
124+ },
125+ "propertyUnit" : {
126+ "$id" : " #/properties/data/items/properties/propertyUnit" ,
127+ "type" : " string" ,
128+ "default" : " " ,
129+ "examples" : [
130+ " T"
131+ ]
132+ },
133+ "propertyDivFactor" : {
134+ "$id" : " #/properties/data/items/properties/propertyDivFactor" ,
135+ "type" : " integer" ,
136+ "default" : 0 ,
137+ "examples" : [
138+ 1.0
139+ ]
140+ }
141+ }
142+ }
143+ }
144+ }
145+ }
0 commit comments