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