blob: 0b87b6198d04533ffeed5106bc386c8d4bc31bfc [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",
4 "definitions": {
5 "xyz": {
6 "openbmc_project": {
7 "Inventory": {
8 "Decorator": {
9 "Asset": {
10 "additionalProperties": false,
11 "properties": {
Delphine CC Chiua4aebdc2024-05-15 16:23:54 +080012 "SparePartNumber": {
13 "type": "string"
14 },
Brad Bishopb9809912020-05-07 17:15:31 -040015 "Manufacturer": {
16 "type": "string"
17 },
18 "Model": {
19 "type": "string"
20 },
21 "PartNumber": {
22 "type": "string"
23 },
24 "SerialNumber": {
25 "type": "string"
26 }
27 },
28 "required": [
29 "Manufacturer",
30 "Model",
31 "PartNumber",
32 "SerialNumber"
33 ],
34 "type": "object"
35 },
36 "AssetTag": {
37 "additionalProperties": false,
38 "properties": {
39 "AssetTag": {
40 "type": "string"
41 }
42 },
Patrick Williamsfa8ee872022-12-07 07:00:42 -060043 "required": ["AssetTag"],
Brad Bishopb9809912020-05-07 17:15:31 -040044 "type": "object"
Kumar Thangavele5c473f2023-01-27 15:09:45 +053045 },
Chau Ly61854782023-11-29 10:16:33 +000046 "Compatible": {
47 "additionalProperties": false,
48 "properties": {
49 "Names": {
50 "type": "array",
51 "items": {
52 "type": "string"
53 }
54 }
55 },
56 "required": ["Names"],
57 "type": "object"
58 },
Kumar Thangavele5c473f2023-01-27 15:09:45 +053059 "Replaceable": {
60 "additionalProperties": false,
61 "properties": {
62 "FieldReplaceable": {
63 "type": "boolean"
Logananth Sundararaj73963322023-01-24 18:23:44 +053064 },
65 "HotPluggable": {
66 "type": "boolean"
Kumar Thangavele5c473f2023-01-27 15:09:45 +053067 }
68 },
Logananth Sundararaj73963322023-01-24 18:23:44 +053069 "required": ["FieldReplaceable", "HotPluggable"],
Kumar Thangavele5c473f2023-01-27 15:09:45 +053070 "type": "object"
Delphine CC Chiuec42f452024-02-16 09:54:52 +080071 },
72 "Slot": {
73 "additionalProperties": false,
74 "properties": {
75 "SlotNumber": {
76 "type": ["string", "number"]
77 }
78 },
79 "required": ["SlotNumber"],
80 "type": "object"
Delphine CC Chiub9dbb8c2024-03-28 17:06:07 +080081 },
82 "Revision": {
83 "additionalProperties": false,
84 "properties": {
85 "Version": {
86 "type": "string"
87 }
88 },
89 "required": ["Version"],
90 "type": "object"
Brad Bishopb9809912020-05-07 17:15:31 -040091 }
92 },
93 "Item": {
Brad Bishop9453a682020-05-07 19:12:46 -040094 "Board": {
95 "Motherboard": {
96 "additionalProperties": false,
97 "properties": {
98 "ProductId": {
99 "type": "number"
100 }
101 },
Patrick Williamsfa8ee872022-12-07 07:00:42 -0600102 "required": ["ProductId"],
Brad Bishop9453a682020-05-07 19:12:46 -0400103 "type": "object"
104 }
105 },
106 "Chassis": {
107 "additionalProperties": false,
108 "type": "object"
109 },
Chau Lyca144ab2024-04-15 03:54:44 +0000110 "NetworkInterface": {
111 "additionalProperties": false,
112 "properties": {
113 "MACAddress": {
114 "type": "string"
115 }
116 },
117 "required": ["MACAddress"],
118 "type": "object"
119 },
Brad Bishop9453a682020-05-07 19:12:46 -0400120 "Panel": {
121 "additionalProperties": false,
122 "type": "object"
123 },
Brad Bishopb9809912020-05-07 17:15:31 -0400124 "System": {
125 "additionalProperties": false,
126 "type": "object"
127 }
128 }
Hieu Huynhab725312024-02-20 09:03:38 +0000129 },
130 "Common": {
131 "UUID": {
132 "additionalProperties": false,
133 "properties": {
134 "UUID": {
135 "type": "string"
136 }
137 },
138 "required": ["UUID"],
139 "type": "object"
140 }
Brad Bishopb9809912020-05-07 17:15:31 -0400141 }
142 }
143 }
144 }
145}