James Feist | 1e3e698 | 2018-08-03 16:09:28 -0700 | [diff] [blame] | 1 | { |
Brad Bishop | 64d7cec | 2020-05-01 10:00:23 -0400 | [diff] [blame] | 2 | "$schema": "http://json-schema.org/draft-07/schema#", |
Brad Bishop | 8e659b5 | 2020-05-07 17:31:04 -0400 | [diff] [blame] | 3 | "definitions": { |
Brad Bishop | ada40c5 | 2020-05-07 19:32:05 -0400 | [diff] [blame] | 4 | "EMExposesElement": { |
| 5 | "description": [ |
| 6 | "The exposes property element schema. An element of the exposes ", |
| 7 | "property is always an array where elements are of type exposes ", |
| 8 | "entry." |
| 9 | ], |
| 10 | "oneOf": [ |
| 11 | { |
Brad Bishop | 7d05ee5 | 2022-05-26 16:27:48 -0400 | [diff] [blame] | 12 | "$ref": "ibm.json#/definitions/IBMCompatibleSystem" |
Brad Bishop | 648ae63 | 2020-10-09 08:20:12 -0400 | [diff] [blame] | 13 | }, |
| 14 | { |
Brad Bishop | 7d05ee5 | 2022-05-26 16:27:48 -0400 | [diff] [blame] | 15 | "$ref": "ibm.json#/definitions/IBMCFFPSConnector" |
Brad Bishop | 4afe708 | 2020-10-01 09:59:26 -0400 | [diff] [blame] | 16 | }, |
| 17 | { |
Brad Bishop | 7d05ee5 | 2022-05-26 16:27:48 -0400 | [diff] [blame] | 18 | "$ref": "intel.json#/definitions/IntelFanConnector" |
Brad Bishop | dc10828 | 2020-09-24 19:01:28 -0400 | [diff] [blame] | 19 | }, |
| 20 | { |
Brad Bishop | 7d05ee5 | 2022-05-26 16:27:48 -0400 | [diff] [blame] | 21 | "$ref": "pid.json#/definitions/Pid" |
Brad Bishop | 4fa1d39 | 2020-05-07 20:27:15 -0400 | [diff] [blame] | 22 | }, |
| 23 | { |
Brad Bishop | 7d05ee5 | 2022-05-26 16:27:48 -0400 | [diff] [blame] | 24 | "$ref": "pid_zone.json#/definitions/PidZone" |
Brad Bishop | 4fa1d39 | 2020-05-07 20:27:15 -0400 | [diff] [blame] | 25 | }, |
| 26 | { |
Brad Bishop | 7d05ee5 | 2022-05-26 16:27:48 -0400 | [diff] [blame] | 27 | "$ref": "stepwise.json#/definitions/Stepwise" |
Brad Bishop | 4fa1d39 | 2020-05-07 20:27:15 -0400 | [diff] [blame] | 28 | }, |
| 29 | { |
Brad Bishop | ada40c5 | 2020-05-07 19:32:05 -0400 | [diff] [blame] | 30 | "$ref": "legacy.json#/definitions/Aggregate" |
| 31 | }, |
| 32 | { |
Brad Bishop | 7d05ee5 | 2022-05-26 16:27:48 -0400 | [diff] [blame] | 33 | "$ref": "virtual_sensor.json#/definitions/VirtualSensor" |
Rashmica Gupta | e23af56 | 2021-07-29 15:12:16 +1000 | [diff] [blame] | 34 | }, |
| 35 | { |
Brad Bishop | ada40c5 | 2020-05-07 19:32:05 -0400 | [diff] [blame] | 36 | "description": [ |
| 37 | "Ensure the parent oneOf schema does not validate ", |
| 38 | "when an element does not define a type property." |
| 39 | ], |
| 40 | "not": { |
| 41 | "required": [ |
| 42 | "Type" |
| 43 | ] |
| 44 | }, |
| 45 | "title": "Missing Type" |
| 46 | }, |
| 47 | { |
| 48 | "description": [ |
| 49 | "Ensure the parent oneOf schema does not validate ", |
| 50 | "when an element does not define a name property." |
| 51 | ], |
| 52 | "not": { |
| 53 | "required": [ |
| 54 | "Name" |
| 55 | ] |
| 56 | }, |
| 57 | "title": "Missing Name" |
| 58 | } |
| 59 | ], |
| 60 | "title": "Exposes Property Element" |
| 61 | }, |
Brad Bishop | 8e659b5 | 2020-05-07 17:31:04 -0400 | [diff] [blame] | 62 | "EMConfig": { |
Brad Bishop | 2189d61 | 2020-05-07 19:27:44 -0400 | [diff] [blame] | 63 | "title": "Entity Manager Configuration", |
| 64 | "description": [ |
| 65 | "The schema for an entity manager configuration. An entity ", |
| 66 | "manager configuration describes an association between a ", |
| 67 | "match condition, also known as a probe, and an array of ", |
| 68 | "heterogeneous configuration data. When a probe match ", |
| 69 | "occurs, the configuration data is exported to DBus." |
| 70 | ], |
Brad Bishop | 9453a68 | 2020-05-07 19:12:46 -0400 | [diff] [blame] | 71 | "additionalProperties": false, |
James Feist | 1e3e698 | 2018-08-03 16:09:28 -0700 | [diff] [blame] | 72 | "type": "object", |
| 73 | "properties": { |
Brad Bishop | 9453a68 | 2020-05-07 19:12:46 -0400 | [diff] [blame] | 74 | "Bus": { |
| 75 | "type": "string" |
| 76 | }, |
James Feist | 1e3e698 | 2018-08-03 16:09:28 -0700 | [diff] [blame] | 77 | "Exposes": { |
Brad Bishop | 2189d61 | 2020-05-07 19:27:44 -0400 | [diff] [blame] | 78 | "description": [ |
| 79 | "The schema for the exposes property. The exposes ", |
| 80 | "property must be an array where elements are of ", |
| 81 | "type EMExposesElement. The exposes property is the ", |
| 82 | "heterogeneous configuration data exported to DBus ", |
| 83 | "upon a probe match." |
| 84 | ], |
James Feist | 1e3e698 | 2018-08-03 16:09:28 -0700 | [diff] [blame] | 85 | "type": "array", |
| 86 | "items": { |
Brad Bishop | ada40c5 | 2020-05-07 19:32:05 -0400 | [diff] [blame] | 87 | "$ref": "#/definitions/EMExposesElement" |
James Feist | 1e3e698 | 2018-08-03 16:09:28 -0700 | [diff] [blame] | 88 | } |
| 89 | }, |
Brad Bishop | 9453a68 | 2020-05-07 19:12:46 -0400 | [diff] [blame] | 90 | "Logging": { |
| 91 | "enum": [ |
| 92 | "Off" |
| 93 | ] |
| 94 | }, |
James Feist | 1e3e698 | 2018-08-03 16:09:28 -0700 | [diff] [blame] | 95 | "Name": { |
Brad Bishop | 2189d61 | 2020-05-07 19:27:44 -0400 | [diff] [blame] | 96 | "description": [ |
| 97 | "The schema for the name property. The name property ", |
| 98 | "identifies the configuration. When exported, the ", |
| 99 | "configuration will be instantiated at: ", |
| 100 | "/xyz/openbmc_project/configuration/<Type>/<Name>" |
| 101 | ], |
James Feist | 1e3e698 | 2018-08-03 16:09:28 -0700 | [diff] [blame] | 102 | "type": "string" |
| 103 | }, |
| 104 | "Probe": { |
Brad Bishop | 2189d61 | 2020-05-07 19:27:44 -0400 | [diff] [blame] | 105 | "description": [ |
| 106 | "The schema for an entity manager probe statement. ", |
| 107 | "Probes can be a single string or an array. Probes ", |
| 108 | "describe a match condition, for example when a DBus ", |
| 109 | "property has a specific value. When the match condition", |
| 110 | " occurs, the information described by the Exposes ", |
| 111 | "property is exported onto the DBus." |
| 112 | ], |
James Feist | 1e3e698 | 2018-08-03 16:09:28 -0700 | [diff] [blame] | 113 | "anyOf": [ |
| 114 | { |
| 115 | "type": "string" |
| 116 | }, |
| 117 | { |
| 118 | "type": "array", |
| 119 | "items": { |
| 120 | "type": "string" |
| 121 | } |
| 122 | } |
| 123 | ] |
| 124 | }, |
James Feist | 60d93d2 | 2019-07-10 15:08:35 -0700 | [diff] [blame] | 125 | "Type": { |
Brad Bishop | 2189d61 | 2020-05-07 19:27:44 -0400 | [diff] [blame] | 126 | "title": "Configuration Type", |
| 127 | "description": [ |
| 128 | "The schema for the type property. The type property", |
| 129 | "identifies the type of the configuration. When exported,", |
| 130 | "configurations will be instantiated as children of: ", |
| 131 | "/xyz/openbmc_project/configuration/<Type>" |
| 132 | ], |
Brad Bishop | 45d42a5 | 2020-05-07 19:19:49 -0400 | [diff] [blame] | 133 | "enum": [ |
| 134 | "Board", |
| 135 | "Chassis", |
| 136 | "NVMe", |
| 137 | "PowerSupply" |
| 138 | ] |
James Feist | 60d93d2 | 2019-07-10 15:08:35 -0700 | [diff] [blame] | 139 | }, |
James Feist | 1e3e698 | 2018-08-03 16:09:28 -0700 | [diff] [blame] | 140 | "xyz.openbmc_project.Inventory.Decorator.Asset": { |
Brad Bishop | b980991 | 2020-05-07 17:15:31 -0400 | [diff] [blame] | 141 | "$ref": "openbmc-dbus.json#/definitions/xyz/openbmc_project/Inventory/Decorator/Asset" |
James Feist | 1e3e698 | 2018-08-03 16:09:28 -0700 | [diff] [blame] | 142 | }, |
James Feist | 60d93d2 | 2019-07-10 15:08:35 -0700 | [diff] [blame] | 143 | "ProductId": { |
| 144 | "type": "number" |
| 145 | }, |
| 146 | "xyz.openbmc_project.Inventory.Decorator.AssetTag": { |
Brad Bishop | b980991 | 2020-05-07 17:15:31 -0400 | [diff] [blame] | 147 | "$ref": "openbmc-dbus.json#/definitions/xyz/openbmc_project/Inventory/Decorator/AssetTag" |
James Feist | 60d93d2 | 2019-07-10 15:08:35 -0700 | [diff] [blame] | 148 | }, |
Brad Bishop | 9453a68 | 2020-05-07 19:12:46 -0400 | [diff] [blame] | 149 | "xyz.openbmc_project.Inventory.Item.Board.Motherboard": { |
| 150 | "$ref": "openbmc-dbus.json#/definitions/xyz/openbmc_project/Inventory/Item/Board/Motherboard" |
| 151 | }, |
| 152 | "xyz.openbmc_project.Inventory.Item.Chassis": { |
| 153 | "$ref": "openbmc-dbus.json#/definitions/xyz/openbmc_project/Inventory/Item/Chassis" |
| 154 | }, |
| 155 | "xyz.openbmc_project.Inventory.Item.Panel": { |
| 156 | "$ref": "openbmc-dbus.json#/definitions/xyz/openbmc_project/Inventory/Item/Panel" |
| 157 | }, |
James Feist | 60d93d2 | 2019-07-10 15:08:35 -0700 | [diff] [blame] | 158 | "xyz.openbmc_project.Inventory.Item.System": { |
Brad Bishop | b980991 | 2020-05-07 17:15:31 -0400 | [diff] [blame] | 159 | "$ref": "openbmc-dbus.json#/definitions/xyz/openbmc_project/Inventory/Item/System" |
James Feist | 1e3e698 | 2018-08-03 16:09:28 -0700 | [diff] [blame] | 160 | } |
| 161 | }, |
| 162 | "required": [ |
| 163 | "Exposes", |
| 164 | "Name", |
Brad Bishop | 45d42a5 | 2020-05-07 19:19:49 -0400 | [diff] [blame] | 165 | "Probe", |
| 166 | "Type" |
James Feist | 1e3e698 | 2018-08-03 16:09:28 -0700 | [diff] [blame] | 167 | ] |
| 168 | } |
Brad Bishop | 8e659b5 | 2020-05-07 17:31:04 -0400 | [diff] [blame] | 169 | }, |
Brad Bishop | 2189d61 | 2020-05-07 19:27:44 -0400 | [diff] [blame] | 170 | "title": "Entity Manager Configuration File", |
| 171 | "description": [ |
| 172 | "The schema for an entity manager configuration file. An entity ", |
| 173 | "mananger configuration file can consist of a single object, or an ", |
| 174 | "array of objects. Objects must be of type EMConfig." |
| 175 | ], |
Brad Bishop | 8e659b5 | 2020-05-07 17:31:04 -0400 | [diff] [blame] | 176 | "anyOf": [ |
| 177 | { |
| 178 | "type": "array", |
| 179 | "items": { |
| 180 | "$ref": "#/definitions/EMConfig" |
| 181 | } |
| 182 | }, |
| 183 | { |
| 184 | "$ref": "#/definitions/EMConfig" |
| 185 | } |
James Feist | 1e3e698 | 2018-08-03 16:09:28 -0700 | [diff] [blame] | 186 | ] |
| 187 | } |