schemas: legacy: extract MultiNodeID
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: Ibb16fc166a7f587bd5d8f3442744a60b037526b9
Signed-off-by: Alexander Hansen <alexander.hansen@9elements.com>
diff --git a/schemas/global.json b/schemas/global.json
index f822413..985cb59 100644
--- a/schemas/global.json
+++ b/schemas/global.json
@@ -76,6 +76,9 @@
"$ref": "legacy.json#/$defs/Gpio"
},
{
+ "$ref": "legacy.json#/$defs/MultiNodeID"
+ },
+ {
"$ref": "virtual_sensor.json#/$defs/VirtualSensor"
},
{
diff --git a/schemas/legacy.json b/schemas/legacy.json
index 444f339..cb7dec9 100644
--- a/schemas/legacy.json
+++ b/schemas/legacy.json
@@ -390,6 +390,23 @@
"required": ["Name", "Type", "Index", "Direction", "Polarity"],
"type": "object"
},
+ "MultiNodeID": {
+ "additionalProperties": false,
+ "properties": {
+ "Name": {
+ "$ref": "#/$defs/Types/Name"
+ },
+ "GpioPins": {
+ "$ref": "#/$defs/Types/GpioPins"
+ },
+ "Type": {
+ "type": "string",
+ "const": "MultiNodeID"
+ }
+ },
+ "required": ["Name", "Type", "GpioPins"],
+ "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,
@@ -456,9 +473,6 @@
"EntityInstance": {
"$ref": "#/$defs/Types/EntityInstance"
},
- "GpioPins": {
- "$ref": "#/$defs/Types/GpioPins"
- },
"Index": {
"$ref": "#/$defs/Types/Index"
},
@@ -876,7 +890,6 @@
"HostCpuUtilization",
"MB Upstream Port",
"DownstreamPort",
- "MultiNodeID",
"MultiNodePresence",
"PSUPresence",
"Intel HSBP CPLD",