1{ 2 "$schema": "http://json-schema.org/draft-07/schema#", 3 "$defs": { 4 "EMExposesElement": { 5 "description": "The exposes property element schema. An element of the exposes property is always an array where elements are of type exposes entry.", 6 "anyOf": [ 7 { 8 "$ref": "ibm.json#/$defs/PowerModeProperties" 9 }, 10 { 11 "$ref": "ibm.json#/$defs/IBMCompatibleSystem" 12 }, 13 { 14 "$ref": "ibm.json#/$defs/IBMCFFPSConnector" 15 }, 16 { 17 "$ref": "intel.json#/$defs/IntelFanConnector" 18 }, 19 { 20 "$ref": "pid.json#/$defs/Pid" 21 }, 22 { 23 "$ref": "pid_zone.json#/$defs/PidZone" 24 }, 25 { 26 "$ref": "satellite_controller.json#/$defs/SatelliteController" 27 }, 28 { 29 "$ref": "stepwise.json#/$defs/Stepwise" 30 }, 31 { 32 "$ref": "legacy.json#/$defs/Aggregate" 33 }, 34 { 35 "$ref": "virtual_sensor.json#/$defs/VirtualSensor" 36 }, 37 { 38 "description": "Ensure the parent anyOf schema does not validate when an element does not define a type property.", 39 "not": { 40 "required": ["Type"] 41 }, 42 "title": "Missing Type" 43 }, 44 { 45 "description": "Ensure the parent anyOf schema does not validate when an element does not define a name property.", 46 "not": { 47 "required": ["Name"] 48 }, 49 "title": "Missing Name" 50 } 51 ], 52 "title": "Exposes Property Element" 53 }, 54 "EMConfig": { 55 "title": "Entity Manager Configuration", 56 "description": "The schema for an entity manager configuration. An entity manager configuration describes an association between a match condition, also known as a probe, and an array of heterogeneous configuration data. When a probe match occurs, the configuration data is exported to DBus.", 57 "additionalProperties": false, 58 "type": "object", 59 "properties": { 60 "Bus": { 61 "type": "string" 62 }, 63 "Exposes": { 64 "description": "The schema for the exposes property. The exposes property must be an array where elements are of type EMExposesElement. The exposes property is the heterogeneous configuration data exported to DBus upon a probe match.", 65 "type": "array", 66 "items": { 67 "$ref": "#/$defs/EMExposesElement" 68 } 69 }, 70 "Logging": { 71 "enum": ["Off"] 72 }, 73 "Name": { 74 "description": "The schema for the name property. The name property identifies the configuration. When exported, the configuration will be instantiated at: /xyz/openbmc_project/configuration/<Type>/<Name>", 75 "type": "string" 76 }, 77 "Probe": { 78 "description": "The schema for an entity manager probe statement. Probes can be a single string or an array. Probes describe a match condition, for example when a DBus property has a specific value. When the match condition occurs, the information described by the Exposes property is exported onto the DBus.", 79 "anyOf": [ 80 { 81 "type": "string" 82 }, 83 { 84 "type": "array", 85 "items": { 86 "type": "string" 87 } 88 } 89 ] 90 }, 91 "Type": { 92 "title": "Configuration Type", 93 "description": "The schema for the type property. The type property identifies the type of the configuration. When exported, configurations will be instantiated as children of: /xyz/openbmc_project/configuration/<Type>", 94 "enum": ["Board", "Chassis", "NVMe", "PowerSupply"] 95 }, 96 "xyz.openbmc_project.Common.UUID": { 97 "$ref": "openbmc-dbus.json#/$defs/xyz/openbmc_project/Common/UUID" 98 }, 99 "xyz.openbmc_project.Inventory.Decorator.Asset": { 100 "$ref": "openbmc-dbus.json#/$defs/xyz/openbmc_project/Inventory/Decorator/Asset" 101 }, 102 "ProductId": { 103 "type": "number" 104 }, 105 "xyz.openbmc_project.Inventory.Decorator.AssetTag": { 106 "$ref": "openbmc-dbus.json#/$defs/xyz/openbmc_project/Inventory/Decorator/AssetTag" 107 }, 108 "xyz.openbmc_project.Inventory.Decorator.Compatible": { 109 "$ref": "openbmc-dbus.json#/$defs/xyz/openbmc_project/Inventory/Decorator/Compatible" 110 }, 111 "xyz.openbmc_project.Inventory.Decorator.Replaceable": { 112 "$ref": "openbmc-dbus.json#/$defs/xyz/openbmc_project/Inventory/Decorator/Replaceable" 113 }, 114 "xyz.openbmc_project.Inventory.Decorator.Slot": { 115 "$ref": "openbmc-dbus.json#/$defs/xyz/openbmc_project/Inventory/Decorator/Slot" 116 }, 117 "xyz.openbmc_project.Inventory.Decorator.Revision": { 118 "$ref": "openbmc-dbus.json#/$defs/xyz/openbmc_project/Inventory/Decorator/Revision" 119 }, 120 "xyz.openbmc_project.Inventory.Item.Board.Motherboard": { 121 "$ref": "openbmc-dbus.json#/$defs/xyz/openbmc_project/Inventory/Item/Board/Motherboard" 122 }, 123 "xyz.openbmc_project.Inventory.Item.Chassis": { 124 "$ref": "openbmc-dbus.json#/$defs/xyz/openbmc_project/Inventory/Item/Chassis" 125 }, 126 "xyz.openbmc_project.Inventory.Item.NetworkInterface": { 127 "$ref": "openbmc-dbus.json#/$defs/xyz/openbmc_project/Inventory/Item/NetworkInterface" 128 }, 129 "xyz.openbmc_project.Inventory.Item.Panel": { 130 "$ref": "openbmc-dbus.json#/$defs/xyz/openbmc_project/Inventory/Item/Panel" 131 }, 132 "xyz.openbmc_project.Inventory.Item.System": { 133 "$ref": "openbmc-dbus.json#/$defs/xyz/openbmc_project/Inventory/Item/System" 134 }, 135 "xyz.openbmc_project.Inventory.Item.BMC": { 136 "$ref": "openbmc-dbus.json#/$defs/xyz/openbmc_project/Inventory/Item/BMC" 137 } 138 }, 139 "required": ["Exposes", "Name", "Probe", "Type"] 140 } 141 }, 142 "title": "Entity Manager Configuration File", 143 "description": "The schema for an entity manager configuration file. An entity mananger configuration file can consist of a single object, or an array of objects. Objects must be of type EMConfig.", 144 "anyOf": [ 145 { 146 "type": "array", 147 "items": { 148 "$ref": "#/$defs/EMConfig" 149 } 150 }, 151 { 152 "$ref": "#/$defs/EMConfig" 153 } 154 ] 155} 156