schemas: legacy: extract PURedundancy

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: Ie4c64bf0022914c23e38cd4919646349ff263a86
Signed-off-by: Alexander Hansen <alexander.hansen@9elements.com>
diff --git a/schemas/global.json b/schemas/global.json
index 303e307..ccf41e6 100644
--- a/schemas/global.json
+++ b/schemas/global.json
@@ -49,6 +49,9 @@
                             "$ref": "legacy.json#/$defs/FanRedundancy"
                         },
                         {
+                            "$ref": "legacy.json#/$defs/PURedundancy"
+                        },
+                        {
                             "$ref": "virtual_sensor.json#/$defs/VirtualSensor"
                         },
                         {
diff --git a/schemas/legacy.json b/schemas/legacy.json
index 4582ff9..8c9583b 100644
--- a/schemas/legacy.json
+++ b/schemas/legacy.json
@@ -95,6 +95,23 @@
             "required": ["Name", "Type"],
             "type": "object"
         },
+        "PURedundancy": {
+            "additionalProperties": false,
+            "properties": {
+                "RedundantCount": {
+                    "$ref": "#/$defs/Types/RedundantCount"
+                },
+                "Name": {
+                    "$ref": "#/$defs/Types/Name"
+                },
+                "Type": {
+                    "type": "string",
+                    "const": "PURedundancy"
+                }
+            },
+            "required": ["RedundantCount", "Name", "Type"],
+            "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,
@@ -258,9 +275,6 @@
                 "Rearm": {
                     "$ref": "#/$defs/Types/Rearm"
                 },
-                "RedundantCount": {
-                    "$ref": "#/$defs/Types/RedundantCount"
-                },
                 "ScaleFactor": {
                     "$ref": "#/$defs/Types/ScaleFactor"
                 },
@@ -2122,7 +2136,6 @@
                     "cffps",
                     "ChassisIntrusionSensor",
                     "ExternalSensor",
-                    "PURedundancy",
                     "NMSensor",
                     "PCA9543Mux",
                     "PCA9544Mux",