blob: 64736e447a2c10015d25c3439750fac4aa3a7b37 [file] [log] [blame]
James Feist1e3e6982018-08-03 16:09:28 -07001{
Brad Bishop64d7cec2020-05-01 10:00:23 -04002 "$schema": "http://json-schema.org/draft-07/schema#",
Brad Bishop8e659b52020-05-07 17:31:04 -04003 "definitions": {
4 "EMConfig": {
Brad Bishop9453a682020-05-07 19:12:46 -04005 "additionalProperties": false,
James Feist1e3e6982018-08-03 16:09:28 -07006 "type": "object",
7 "properties": {
Brad Bishop9453a682020-05-07 19:12:46 -04008 "Bus": {
9 "type": "string"
10 },
James Feist1e3e6982018-08-03 16:09:28 -070011 "Exposes": {
12 "type": "array",
13 "items": {
Brad Bishop66665882020-05-07 17:05:18 -040014 "$ref": "legacy.json#/definitions/Aggregate"
James Feist1e3e6982018-08-03 16:09:28 -070015 }
16 },
Brad Bishop9453a682020-05-07 19:12:46 -040017 "Logging": {
18 "enum": [
19 "Off"
20 ]
21 },
James Feist1e3e6982018-08-03 16:09:28 -070022 "Name": {
23 "type": "string"
24 },
25 "Probe": {
26 "anyOf": [
27 {
28 "type": "string"
29 },
30 {
31 "type": "array",
32 "items": {
33 "type": "string"
34 }
35 }
36 ]
37 },
James Feist60d93d22019-07-10 15:08:35 -070038 "Type": {
Brad Bishop45d42a52020-05-07 19:19:49 -040039 "enum": [
40 "Board",
41 "Chassis",
42 "NVMe",
43 "PowerSupply"
44 ]
James Feist60d93d22019-07-10 15:08:35 -070045 },
James Feist1e3e6982018-08-03 16:09:28 -070046 "xyz.openbmc_project.Inventory.Decorator.Asset": {
Brad Bishopb9809912020-05-07 17:15:31 -040047 "$ref": "openbmc-dbus.json#/definitions/xyz/openbmc_project/Inventory/Decorator/Asset"
James Feist1e3e6982018-08-03 16:09:28 -070048 },
James Feist60d93d22019-07-10 15:08:35 -070049 "ProductId": {
50 "type": "number"
51 },
52 "xyz.openbmc_project.Inventory.Decorator.AssetTag": {
Brad Bishopb9809912020-05-07 17:15:31 -040053 "$ref": "openbmc-dbus.json#/definitions/xyz/openbmc_project/Inventory/Decorator/AssetTag"
James Feist60d93d22019-07-10 15:08:35 -070054 },
Brad Bishop9453a682020-05-07 19:12:46 -040055 "xyz.openbmc_project.Inventory.Item.Board.Motherboard": {
56 "$ref": "openbmc-dbus.json#/definitions/xyz/openbmc_project/Inventory/Item/Board/Motherboard"
57 },
58 "xyz.openbmc_project.Inventory.Item.Chassis": {
59 "$ref": "openbmc-dbus.json#/definitions/xyz/openbmc_project/Inventory/Item/Chassis"
60 },
61 "xyz.openbmc_project.Inventory.Item.Panel": {
62 "$ref": "openbmc-dbus.json#/definitions/xyz/openbmc_project/Inventory/Item/Panel"
63 },
James Feist60d93d22019-07-10 15:08:35 -070064 "xyz.openbmc_project.Inventory.Item.System": {
Brad Bishopb9809912020-05-07 17:15:31 -040065 "$ref": "openbmc-dbus.json#/definitions/xyz/openbmc_project/Inventory/Item/System"
James Feist1e3e6982018-08-03 16:09:28 -070066 }
67 },
68 "required": [
69 "Exposes",
70 "Name",
Brad Bishop45d42a52020-05-07 19:19:49 -040071 "Probe",
72 "Type"
James Feist1e3e6982018-08-03 16:09:28 -070073 ]
74 }
Brad Bishop8e659b52020-05-07 17:31:04 -040075 },
76 "anyOf": [
77 {
78 "type": "array",
79 "items": {
80 "$ref": "#/definitions/EMConfig"
81 }
82 },
83 {
84 "$ref": "#/definitions/EMConfig"
85 }
James Feist1e3e6982018-08-03 16:09:28 -070086 ]
87}