schemas: legacy: extract IpmbPowerMonitor
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: I04a27709c25f3bd4cc5f5b2c14e8f87837e9c9eb
Signed-off-by: Alexander Hansen <alexander.hansen@9elements.com>
diff --git a/schemas/global.json b/schemas/global.json
index 31b40f5..c3da46a 100644
--- a/schemas/global.json
+++ b/schemas/global.json
@@ -103,6 +103,9 @@
"$ref": "legacy.json#/$defs/IpmbDevice"
},
{
+ "$ref": "legacy.json#/$defs/IpmbPowerMonitor"
+ },
+ {
"$ref": "virtual_sensor.json#/$defs/VirtualSensor"
},
{
diff --git a/schemas/legacy.json b/schemas/legacy.json
index ffbf895..b4e2f4e 100644
--- a/schemas/legacy.json
+++ b/schemas/legacy.json
@@ -572,6 +572,28 @@
"required": ["Name", "Type", "Bus", "Address", "Class"],
"type": "object"
},
+ "IpmbPowerMonitor": {
+ "additionalProperties": false,
+ "properties": {
+ "Name": {
+ "$ref": "#/$defs/Types/Name"
+ },
+ "Bus": {
+ "$ref": "#/$defs/Types/Bus"
+ },
+ "Address": {
+ "$ref": "#/$defs/Types/Address"
+ },
+ "Class": {
+ "$ref": "#/$defs/Types/Class"
+ },
+ "Type": {
+ "const": "IpmbPowerMonitor"
+ }
+ },
+ "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,
@@ -992,7 +1014,6 @@
"SBRMI",
"SBTSI",
"smpro_hwmon",
- "IpmbPowerMonitor",
"MOSTempSensor",
"EEPROM",
"BMC",