Skip to content

Commit 1c67c18

Browse files
authored
🔄 re-generate JSON Schemas (#414)
1 parent 462110c commit 1c67c18

29 files changed

+8188
-1771
lines changed

BO4ETestProject/TestJsonSchemaGeneration.cs

Lines changed: 2 additions & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -33,13 +33,14 @@ public void NegativeTest()
3333
}
3434

3535

36-
private const int LastDataRowOffset = 40;
36+
private const int LastDataRowOffset = 50;
3737
private const int MaxSchemasPerHour = 10;
3838
[TestMethod]
3939
[DataRow(0)]
4040
[DataRow(10)]
4141
[DataRow(20)]
4242
[DataRow(30)]
43+
[DataRow(40)]
4344
[DataRow(LastDataRowOffset)] // using these different data rows you to workaround the 10schema per hour limitation (MaxSchemasPerHour)
4445

4546
public void TestJSchemaFileGenerationBo(int offset)

json-schema-files/BO4E.BO.Anfrage.json

Lines changed: 98 additions & 25 deletions
Original file line numberDiff line numberDiff line change
@@ -2,28 +2,49 @@
22
"$schema": "http://json-schema.org/draft-07/schema#",
33
"definitions": {
44
"ExterneReferenz": {
5-
"type": ["object", "null"],
5+
"type": [
6+
"object",
7+
"null"
8+
],
69
"properties": {
710
"exRefName": {
8-
"type": ["string", "null"]
11+
"type": [
12+
"string",
13+
"null"
14+
]
915
},
1016
"exRefWert": {
11-
"type": ["string", "null"]
17+
"type": [
18+
"string",
19+
"null"
20+
]
1221
},
1322
"timestamp": {
14-
"type": ["string", "null"],
23+
"type": [
24+
"string",
25+
"null"
26+
],
1527
"format": "date-time"
1628
},
1729
"guid": {
18-
"type": ["string", "null"]
30+
"type": [
31+
"string",
32+
"null"
33+
]
1934
}
2035
}
2136
},
2237
"Zeitraum": {
23-
"type": ["object", "null"],
38+
"type": [
39+
"object",
40+
"null"
41+
],
2442
"properties": {
2543
"einheit": {
26-
"type": ["string", "null"],
44+
"type": [
45+
"string",
46+
"null"
47+
],
2748
"enum": [
2849
null,
2950
"SEKUNDE",
@@ -39,65 +60,110 @@
3960
]
4061
},
4162
"dauer": {
42-
"type": ["number", "null"]
63+
"type": [
64+
"number",
65+
"null"
66+
]
4367
},
4468
"startdatum": {
45-
"type": ["string", "null"],
69+
"type": [
70+
"string",
71+
"null"
72+
],
4673
"format": "date-time"
4774
},
4875
"enddatum": {
49-
"type": ["string", "null"],
76+
"type": [
77+
"string",
78+
"null"
79+
],
5080
"format": "date-time"
5181
},
5282
"startzeitpunkt": {
53-
"type": ["string", "null"],
83+
"type": [
84+
"string",
85+
"null"
86+
],
5487
"format": "date-time"
5588
},
5689
"endzeitpunkt": {
57-
"type": ["string", "null"],
90+
"type": [
91+
"string",
92+
"null"
93+
],
5894
"format": "date-time"
5995
},
6096
"timestamp": {
61-
"type": ["string", "null"],
97+
"type": [
98+
"string",
99+
"null"
100+
],
62101
"format": "date-time"
63102
},
64103
"guid": {
65-
"type": ["string", "null"]
104+
"type": [
105+
"string",
106+
"null"
107+
]
66108
}
67109
},
68-
"required": ["startzeitpunkt", "endzeitpunkt"]
110+
"required": [
111+
"startzeitpunkt",
112+
"endzeitpunkt"
113+
]
69114
}
70115
},
71116
"type": "object",
72117
"properties": {
73118
"boTyp": {
74-
"type": ["string", "null"]
119+
"type": [
120+
"string",
121+
"null"
122+
]
75123
},
76124
"versionStruktur": {
77-
"type": ["string", "null"]
125+
"type": [
126+
"string",
127+
"null"
128+
]
78129
},
79130
"timestamp": {
80-
"type": ["string", "null"],
131+
"type": [
132+
"string",
133+
"null"
134+
],
81135
"format": "date-time"
82136
},
83137
"externeReferenzen": {
84-
"type": ["array", "null"],
138+
"type": [
139+
"array",
140+
"null"
141+
],
85142
"items": {
86143
"$ref": "#/definitions/ExterneReferenz"
87144
}
88145
},
89146
"guid": {
90-
"type": ["string", "null"]
147+
"type": [
148+
"string",
149+
"null"
150+
]
91151
},
92152
"lokationsId": {
93153
"type": "string"
94154
},
95155
"lokationsTyp": {
96156
"type": "string",
97-
"enum": ["MALO", "MELO"]
157+
"enum": [
158+
"MALO",
159+
"MELO"
160+
]
98161
},
99162
"obiskennzahl": {
100-
"type": ["string", "null"]
163+
"type": [
164+
"string",
165+
"null"
166+
]
101167
},
102168
"ZeitraumMesswertanfrage": {
103169
"$ref": "#/definitions/Zeitraum"
@@ -123,7 +189,10 @@
123189
]
124190
},
125191
"anfragetyp": {
126-
"type": ["string", "null"],
192+
"type": [
193+
"string",
194+
"null"
195+
],
127196
"enum": [
128197
null,
129198
"START_ABO",
@@ -142,5 +211,9 @@
142211
]
143212
}
144213
},
145-
"required": ["lokationsId", "lokationsTyp", "anfragekategorie"]
146-
}
214+
"required": [
215+
"lokationsId",
216+
"lokationsTyp",
217+
"anfragekategorie"
218+
]
219+
}

0 commit comments

Comments
 (0)