Skip to content

Commit d6f253c

Browse files
author
Jens Kürten
committed
fix: update json schema
1 parent 1e5adc7 commit d6f253c

File tree

1 file changed

+239
-0
lines changed

1 file changed

+239
-0
lines changed

json_schemas/request.json

Lines changed: 239 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -1,5 +1,240 @@
11
{
22
"$defs": {
3+
"BOMItem": {
4+
"properties": {
5+
"object_type": {
6+
"const": "bom_item",
7+
"default": "bom_item",
8+
"title": "Object Type",
9+
"type": "string"
10+
},
11+
"baugruppe": {
12+
"anyOf": [
13+
{
14+
"type": "string"
15+
},
16+
{
17+
"type": "null"
18+
}
19+
],
20+
"default": null,
21+
"description": "Assembly",
22+
"title": "Baugruppe"
23+
},
24+
"b_index": {
25+
"anyOf": [
26+
{
27+
"type": "string"
28+
},
29+
{
30+
"type": "null"
31+
}
32+
],
33+
"default": null,
34+
"description": "Assembly Index",
35+
"title": "B Index"
36+
},
37+
"component_materialnr_erp": {
38+
"anyOf": [
39+
{
40+
"type": "string"
41+
},
42+
{
43+
"type": "null"
44+
}
45+
],
46+
"default": null,
47+
"description": "Material Number ERP Component",
48+
"title": "Component Materialnr Erp"
49+
},
50+
"netto_durchm": {
51+
"anyOf": [
52+
{
53+
"type": "number"
54+
},
55+
{
56+
"type": "null"
57+
}
58+
],
59+
"default": null,
60+
"description": "Net. Diameter",
61+
"title": "Netto Durchm"
62+
},
63+
"netto_hoehe": {
64+
"anyOf": [
65+
{
66+
"type": "number"
67+
},
68+
{
69+
"type": "null"
70+
}
71+
],
72+
"default": null,
73+
"description": "Net. Height",
74+
"title": "Netto Hoehe"
75+
},
76+
"netto_laenge": {
77+
"anyOf": [
78+
{
79+
"type": "number"
80+
},
81+
{
82+
"type": "null"
83+
}
84+
],
85+
"default": null,
86+
"description": "Net. Length",
87+
"title": "Netto Laenge"
88+
},
89+
"netto_breite": {
90+
"anyOf": [
91+
{
92+
"type": "number"
93+
},
94+
{
95+
"type": "null"
96+
}
97+
],
98+
"default": null,
99+
"description": "Net. Width",
100+
"title": "Netto Breite"
101+
},
102+
"position": {
103+
"anyOf": [
104+
{
105+
"type": "integer"
106+
},
107+
{
108+
"type": "null"
109+
}
110+
],
111+
"default": null,
112+
"description": "Position",
113+
"title": "Position"
114+
},
115+
"menge": {
116+
"anyOf": [
117+
{
118+
"type": "number"
119+
},
120+
{
121+
"type": "null"
122+
}
123+
],
124+
"default": null,
125+
"description": "Quantity",
126+
"title": "Menge"
127+
},
128+
"stlbemerkung": {
129+
"anyOf": [
130+
{
131+
"type": "string"
132+
},
133+
{
134+
"type": "null"
135+
}
136+
],
137+
"default": null,
138+
"description": "Remarks",
139+
"title": "Stlbemerkung"
140+
},
141+
"mengeneinheit": {
142+
"anyOf": [
143+
{
144+
"type": "string"
145+
},
146+
{
147+
"type": "null"
148+
}
149+
],
150+
"default": null,
151+
"description": "Unit of Measure",
152+
"title": "Mengeneinheit"
153+
},
154+
"teilenummer": {
155+
"description": "part number",
156+
"title": "Teilenummer",
157+
"type": "string"
158+
},
159+
"t_index": {
160+
"description": "part index",
161+
"title": "T Index",
162+
"type": "string"
163+
},
164+
"part": {
165+
"anyOf": [
166+
{
167+
"$ref": "#/$defs/Part"
168+
},
169+
{
170+
"type": "null"
171+
}
172+
],
173+
"default": null,
174+
"description": "Part of the BOM item"
175+
}
176+
},
177+
"required": [
178+
"teilenummer",
179+
"t_index"
180+
],
181+
"title": "BOMItem",
182+
"type": "object"
183+
},
184+
"BOMItemFieldCalculationData": {
185+
"properties": {
186+
"bom_item": {
187+
"$ref": "#/$defs/BOMItem",
188+
"description": "Current state of the BOM item"
189+
},
190+
"action": {
191+
"description": "Action being performed",
192+
"enum": [
193+
"create",
194+
"modify",
195+
"copy",
196+
"index"
197+
],
198+
"title": "Action",
199+
"type": "string"
200+
},
201+
"part": {
202+
"$ref": "#/$defs/Part",
203+
"description": "Part of the BOM item"
204+
}
205+
},
206+
"required": [
207+
"bom_item",
208+
"action",
209+
"part"
210+
],
211+
"title": "BOMItemFieldCalculationData",
212+
"type": "object"
213+
},
214+
"BOMItemFieldCalculationEvent": {
215+
"properties": {
216+
"name": {
217+
"const": "bom_item_field_calculation",
218+
"default": "bom_item_field_calculation",
219+
"title": "Name",
220+
"type": "string"
221+
},
222+
"event_id": {
223+
"description": "unique identifier",
224+
"title": "Event Id",
225+
"type": "string"
226+
},
227+
"data": {
228+
"$ref": "#/$defs/BOMItemFieldCalculationData"
229+
}
230+
},
231+
"required": [
232+
"event_id",
233+
"data"
234+
],
235+
"title": "BOMItemFieldCalculationEvent",
236+
"type": "object"
237+
},
3238
"Briefcase": {
4239
"description": "Briefcases are used by Workflows and can contain parts, documents or engineering changes.",
5240
"properties": {
@@ -8059,6 +8294,7 @@
80598294
"event": {
80608295
"discriminator": {
80618296
"mapping": {
8297+
"bom_item_field_calculation": "#/$defs/BOMItemFieldCalculationEvent",
80628298
"custom_operation_document": "#/$defs/CustomOperationDocumentEvent",
80638299
"custom_operation_part": "#/$defs/CustomOperationPartEvent",
80648300
"document_create_check": "#/$defs/DocumentCreateCheckEvent",
@@ -8100,6 +8336,9 @@
81008336
{
81018337
"$ref": "#/$defs/PartFieldCalculationEvent"
81028338
},
8339+
{
8340+
"$ref": "#/$defs/BOMItemFieldCalculationEvent"
8341+
},
81038342
{
81048343
"$ref": "#/$defs/FieldValueCalculationEvent"
81058344
},

0 commit comments

Comments
 (0)