blob: 75b4d746147434ca3ea0072337d3d7fa0c47b0e7 [file] [log] [blame]
Brad Bishopb9809912020-05-07 17:15:31 -04001{
2 "$schema": "http://json-schema.org/draft-07/schema#",
3 "title": "Schemas for JSON representations of OpenBMC DBus interfaces",
Patrick Williams7d6080d2024-09-04 12:54:45 -04004 "$defs": {
Brad Bishopb9809912020-05-07 17:15:31 -04005 "xyz": {
6 "openbmc_project": {
7 "Inventory": {
8 "Decorator": {
9 "Asset": {
10 "additionalProperties": false,
11 "properties": {
Yi-Shum32a4c122024-04-09 11:17:05 +080012 "BuildDate": {
13 "type": "string"
14 },
Delphine CC Chiua4aebdc2024-05-15 16:23:54 +080015 "SparePartNumber": {
16 "type": "string"
17 },
Brad Bishopb9809912020-05-07 17:15:31 -040018 "Manufacturer": {
19 "type": "string"
20 },
21 "Model": {
22 "type": "string"
23 },
24 "PartNumber": {
25 "type": "string"
26 },
27 "SerialNumber": {
28 "type": "string"
29 }
30 },
31 "required": [
32 "Manufacturer",
33 "Model",
34 "PartNumber",
35 "SerialNumber"
36 ],
37 "type": "object"
38 },
39 "AssetTag": {
40 "additionalProperties": false,
41 "properties": {
42 "AssetTag": {
43 "type": "string"
44 }
45 },
Patrick Williamsfa8ee872022-12-07 07:00:42 -060046 "required": ["AssetTag"],
Brad Bishopb9809912020-05-07 17:15:31 -040047 "type": "object"
Kumar Thangavele5c473f2023-01-27 15:09:45 +053048 },
Chau Ly61854782023-11-29 10:16:33 +000049 "Compatible": {
50 "additionalProperties": false,
51 "properties": {
52 "Names": {
53 "type": "array",
54 "items": {
55 "type": "string"
56 }
57 }
58 },
59 "required": ["Names"],
60 "type": "object"
61 },
Kumar Thangavele5c473f2023-01-27 15:09:45 +053062 "Replaceable": {
63 "additionalProperties": false,
64 "properties": {
65 "FieldReplaceable": {
66 "type": "boolean"
Logananth Sundararaj73963322023-01-24 18:23:44 +053067 },
68 "HotPluggable": {
69 "type": "boolean"
Kumar Thangavele5c473f2023-01-27 15:09:45 +053070 }
71 },
Logananth Sundararaj73963322023-01-24 18:23:44 +053072 "required": ["FieldReplaceable", "HotPluggable"],
Kumar Thangavele5c473f2023-01-27 15:09:45 +053073 "type": "object"
Delphine CC Chiuec42f452024-02-16 09:54:52 +080074 },
75 "Slot": {
76 "additionalProperties": false,
77 "properties": {
78 "SlotNumber": {
79 "type": ["string", "number"]
80 }
81 },
82 "required": ["SlotNumber"],
83 "type": "object"
Delphine CC Chiub9dbb8c2024-03-28 17:06:07 +080084 },
85 "Revision": {
86 "additionalProperties": false,
87 "properties": {
88 "Version": {
89 "type": "string"
90 }
91 },
92 "required": ["Version"],
93 "type": "object"
Brad Bishopb9809912020-05-07 17:15:31 -040094 }
95 },
96 "Item": {
Brad Bishop9453a682020-05-07 19:12:46 -040097 "Board": {
98 "Motherboard": {
99 "additionalProperties": false,
100 "properties": {
101 "ProductId": {
102 "type": "number"
103 }
104 },
Patrick Williamsfa8ee872022-12-07 07:00:42 -0600105 "required": ["ProductId"],
Brad Bishop9453a682020-05-07 19:12:46 -0400106 "type": "object"
107 }
108 },
109 "Chassis": {
110 "additionalProperties": false,
111 "type": "object"
112 },
Chau Lyca144ab2024-04-15 03:54:44 +0000113 "NetworkInterface": {
114 "additionalProperties": false,
115 "properties": {
116 "MACAddress": {
117 "type": "string"
118 }
119 },
120 "required": ["MACAddress"],
121 "type": "object"
122 },
Brad Bishop9453a682020-05-07 19:12:46 -0400123 "Panel": {
124 "additionalProperties": false,
125 "type": "object"
126 },
Brad Bishopb9809912020-05-07 17:15:31 -0400127 "System": {
128 "additionalProperties": false,
129 "type": "object"
Ingrid Chenc74b06a2024-09-02 14:57:15 +0800130 },
131 "BMC": {
132 "additionalProperties": false,
133 "type": "object"
Ingrid Chena037dd62024-09-11 16:33:30 +0800134 },
135 "Storage": {
136 "additionalProperties": false,
137 "type": "object"
Brad Bishopb9809912020-05-07 17:15:31 -0400138 }
139 }
Hieu Huynhab725312024-02-20 09:03:38 +0000140 },
141 "Common": {
142 "UUID": {
143 "additionalProperties": false,
144 "properties": {
145 "UUID": {
146 "type": "string"
147 }
148 },
149 "required": ["UUID"],
150 "type": "object"
151 }
Brad Bishopb9809912020-05-07 17:15:31 -0400152 }
153 }
154 }
155 }
156}