blob: 528d2b26bdd1cd469b92efe2218f2fc4f1cb492a [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 },
Oliver Brewkabdad3d52024-08-21 18:49:37 +020062 "ManagedHost": {
63 "additionalProperties": false,
64 "properties": {
65 "HostIndex": {
66 "type": ["string", "number"]
67 }
68 },
69 "required": ["HostIndex"],
70 "type": "object"
71 },
Kumar Thangavele5c473f2023-01-27 15:09:45 +053072 "Replaceable": {
73 "additionalProperties": false,
74 "properties": {
75 "FieldReplaceable": {
76 "type": "boolean"
Logananth Sundararaj73963322023-01-24 18:23:44 +053077 },
78 "HotPluggable": {
79 "type": "boolean"
Kumar Thangavele5c473f2023-01-27 15:09:45 +053080 }
81 },
Logananth Sundararaj73963322023-01-24 18:23:44 +053082 "required": ["FieldReplaceable", "HotPluggable"],
Kumar Thangavele5c473f2023-01-27 15:09:45 +053083 "type": "object"
Delphine CC Chiuec42f452024-02-16 09:54:52 +080084 },
85 "Slot": {
86 "additionalProperties": false,
87 "properties": {
88 "SlotNumber": {
89 "type": ["string", "number"]
90 }
91 },
92 "required": ["SlotNumber"],
93 "type": "object"
Delphine CC Chiub9dbb8c2024-03-28 17:06:07 +080094 },
95 "Revision": {
96 "additionalProperties": false,
97 "properties": {
98 "Version": {
99 "type": "string"
100 }
101 },
102 "required": ["Version"],
103 "type": "object"
Brad Bishopb9809912020-05-07 17:15:31 -0400104 }
105 },
106 "Item": {
Brad Bishop9453a682020-05-07 19:12:46 -0400107 "Board": {
108 "Motherboard": {
109 "additionalProperties": false,
110 "properties": {
111 "ProductId": {
112 "type": "number"
113 }
114 },
Patrick Williamsfa8ee872022-12-07 07:00:42 -0600115 "required": ["ProductId"],
Brad Bishop9453a682020-05-07 19:12:46 -0400116 "type": "object"
117 }
118 },
119 "Chassis": {
120 "additionalProperties": false,
Sean Hee153a9d2024-10-25 18:12:17 +0800121 "properties": {
122 "ChassisType": {
123 "type": "string"
124 }
125 },
Brad Bishop9453a682020-05-07 19:12:46 -0400126 "type": "object"
127 },
Chau Lyca144ab2024-04-15 03:54:44 +0000128 "NetworkInterface": {
129 "additionalProperties": false,
130 "properties": {
131 "MACAddress": {
132 "type": "string"
133 }
134 },
135 "required": ["MACAddress"],
136 "type": "object"
137 },
Brad Bishop9453a682020-05-07 19:12:46 -0400138 "Panel": {
139 "additionalProperties": false,
140 "type": "object"
141 },
Brad Bishopb9809912020-05-07 17:15:31 -0400142 "System": {
143 "additionalProperties": false,
144 "type": "object"
Ingrid Chenc74b06a2024-09-02 14:57:15 +0800145 },
146 "BMC": {
147 "additionalProperties": false,
148 "type": "object"
Ingrid Chena037dd62024-09-11 16:33:30 +0800149 },
150 "Storage": {
151 "additionalProperties": false,
152 "type": "object"
Brad Bishopb9809912020-05-07 17:15:31 -0400153 }
154 }
Hieu Huynhab725312024-02-20 09:03:38 +0000155 },
156 "Common": {
157 "UUID": {
158 "additionalProperties": false,
159 "properties": {
160 "UUID": {
161 "type": "string"
162 }
163 },
164 "required": ["UUID"],
165 "type": "object"
166 }
Brad Bishopb9809912020-05-07 17:15:31 -0400167 }
168 }
169 }
170 }
171}