blob: aa586a73473201b58db7a8753e698b6d21ab0e64 [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": {
12 "Manufacturer": {
13 "type": "string"
14 },
15 "Model": {
16 "type": "string"
17 },
18 "PartNumber": {
19 "type": "string"
20 },
21 "SerialNumber": {
22 "type": "string"
23 }
24 },
25 "required": [
26 "Manufacturer",
27 "Model",
28 "PartNumber",
29 "SerialNumber"
30 ],
31 "type": "object"
32 },
33 "AssetTag": {
34 "additionalProperties": false,
35 "properties": {
36 "AssetTag": {
37 "type": "string"
38 }
39 },
Patrick Williamsfa8ee872022-12-07 07:00:42 -060040 "required": ["AssetTag"],
Brad Bishopb9809912020-05-07 17:15:31 -040041 "type": "object"
Kumar Thangavele5c473f2023-01-27 15:09:45 +053042 },
Chau Ly61854782023-11-29 10:16:33 +000043 "Compatible": {
44 "additionalProperties": false,
45 "properties": {
46 "Names": {
47 "type": "array",
48 "items": {
49 "type": "string"
50 }
51 }
52 },
53 "required": ["Names"],
54 "type": "object"
55 },
Kumar Thangavele5c473f2023-01-27 15:09:45 +053056 "Replaceable": {
57 "additionalProperties": false,
58 "properties": {
59 "FieldReplaceable": {
60 "type": "boolean"
Logananth Sundararaj73963322023-01-24 18:23:44 +053061 },
62 "HotPluggable": {
63 "type": "boolean"
Kumar Thangavele5c473f2023-01-27 15:09:45 +053064 }
65 },
Logananth Sundararaj73963322023-01-24 18:23:44 +053066 "required": ["FieldReplaceable", "HotPluggable"],
Kumar Thangavele5c473f2023-01-27 15:09:45 +053067 "type": "object"
Delphine CC Chiuec42f452024-02-16 09:54:52 +080068 },
69 "Slot": {
70 "additionalProperties": false,
71 "properties": {
72 "SlotNumber": {
73 "type": ["string", "number"]
74 }
75 },
76 "required": ["SlotNumber"],
77 "type": "object"
Delphine CC Chiub9dbb8c2024-03-28 17:06:07 +080078 },
79 "Revision": {
80 "additionalProperties": false,
81 "properties": {
82 "Version": {
83 "type": "string"
84 }
85 },
86 "required": ["Version"],
87 "type": "object"
Brad Bishopb9809912020-05-07 17:15:31 -040088 }
89 },
90 "Item": {
Brad Bishop9453a682020-05-07 19:12:46 -040091 "Board": {
92 "Motherboard": {
93 "additionalProperties": false,
94 "properties": {
95 "ProductId": {
96 "type": "number"
97 }
98 },
Patrick Williamsfa8ee872022-12-07 07:00:42 -060099 "required": ["ProductId"],
Brad Bishop9453a682020-05-07 19:12:46 -0400100 "type": "object"
101 }
102 },
103 "Chassis": {
104 "additionalProperties": false,
105 "type": "object"
106 },
Chau Lyca144ab2024-04-15 03:54:44 +0000107 "NetworkInterface": {
108 "additionalProperties": false,
109 "properties": {
110 "MACAddress": {
111 "type": "string"
112 }
113 },
114 "required": ["MACAddress"],
115 "type": "object"
116 },
Brad Bishop9453a682020-05-07 19:12:46 -0400117 "Panel": {
118 "additionalProperties": false,
119 "type": "object"
120 },
Brad Bishopb9809912020-05-07 17:15:31 -0400121 "System": {
122 "additionalProperties": false,
123 "type": "object"
124 }
125 }
Hieu Huynhab725312024-02-20 09:03:38 +0000126 },
127 "Common": {
128 "UUID": {
129 "additionalProperties": false,
130 "properties": {
131 "UUID": {
132 "type": "string"
133 }
134 },
135 "required": ["UUID"],
136 "type": "object"
137 }
Brad Bishopb9809912020-05-07 17:15:31 -0400138 }
139 }
140 }
141 }
142}