schemas: legacy: extract IpmbDevice
This allows to remove some properties from 'Aggregate' schema which are
no longer needed, since there is now a more specific schema to use.
Tested: Schema Validator Pass
Change-Id: Id8735de23d999d781f40a194e8fa8b6e24d978a8
Signed-off-by: Alexander Hansen <alexander.hansen@9elements.com>
diff --git a/schemas/global.json b/schemas/global.json
index f0f4715..31b40f5 100644
--- a/schemas/global.json
+++ b/schemas/global.json
@@ -100,6 +100,9 @@
"$ref": "legacy.json#/$defs/EmmcDevice"
},
{
+ "$ref": "legacy.json#/$defs/IpmbDevice"
+ },
+ {
"$ref": "virtual_sensor.json#/$defs/VirtualSensor"
},
{
diff --git a/schemas/legacy.json b/schemas/legacy.json
index af4acb6..ffbf895 100644
--- a/schemas/legacy.json
+++ b/schemas/legacy.json
@@ -547,6 +547,31 @@
"required": ["Name", "Type"],
"type": "object"
},
+ "IpmbDevice": {
+ "additionalProperties": false,
+ "properties": {
+ "Name": {
+ "$ref": "#/$defs/Types/Name"
+ },
+ "Bus": {
+ "$ref": "#/$defs/Types/Bus"
+ },
+ "Address": {
+ "$ref": "#/$defs/Types/Address"
+ },
+ "Class": {
+ "$ref": "#/$defs/Types/Class"
+ },
+ "PowerState": {
+ "$ref": "#/$defs/Types/PowerState"
+ },
+ "Type": {
+ "const": "IpmbDevice"
+ }
+ },
+ "required": ["Name", "Type", "Bus", "Address", "Class"],
+ "type": "object"
+ },
"Aggregate": {
"description": "Don't add additional properties to this schema. Consult README.schema for instructions on adding new Exposes element sub-schema.",
"additionalProperties": false,
@@ -967,7 +992,6 @@
"SBRMI",
"SBTSI",
"smpro_hwmon",
- "IpmbDevice",
"IpmbPowerMonitor",
"MOSTempSensor",
"EEPROM",