schemas: legacy: enumerate 'Type' field
This helps to avoid any further schema-less configurations making their
way upstream. New configurations using the legacy schema will only be
able to use the enumerated values for 'Type' field which are already
present in the upstream configurations.
Tested: Schema Validator Pass
Change-Id: Iefe78dfe0cf271cb9ffdd6d9df6b70e6a123453c
Signed-off-by: Alexander Hansen <alexander.hansen@9elements.com>
diff --git a/schemas/legacy.json b/schemas/legacy.json
index 0c18284..3edf7b8 100644
--- a/schemas/legacy.json
+++ b/schemas/legacy.json
@@ -1968,7 +1968,115 @@
"type": "number"
},
"Type": {
- "type": "string"
+ "type": "string",
+ "enum": [
+ "TMP75",
+ "TMP100",
+ "TMP112",
+ "TMP175",
+ "TMP411",
+ "TMP421",
+ "TMP432",
+ "TMP464",
+ "I2CFan",
+ "NuvotonFan",
+ "AspeedFan",
+ "ADC",
+ "NCT7802",
+ "NCT6779",
+ "SBRMI",
+ "SBTSI",
+ "smpro_hwmon",
+ "IpmbSensor",
+ "IpmbDevice",
+ "IpmbPowerMonitor",
+ "MOSTempSensor",
+ "XeonCPU",
+ "EEPROM",
+ "BMC",
+ "Board",
+ "Gpio",
+ "pmbus",
+ "ADC128D818",
+ "INA230",
+ "INA233",
+ "INA238",
+ "SY24655",
+ "MAX5970",
+ "MAX6639",
+ "MAX11615",
+ "MAX11617",
+ "MAX34451",
+ "MAX31725",
+ "ADM1021",
+ "ADM1272",
+ "ADM1266",
+ "ADM1272",
+ "ADM1278",
+ "ADM1281",
+ "MP2971",
+ "MP2973",
+ "MP5023",
+ "MP5990",
+ "XDP710",
+ "IR35221",
+ "IR38060",
+ "IR38164",
+ "IR38263",
+ "PLI1209BC",
+ "PXE1610",
+ "TDA38640",
+ "ISL28022",
+ "ISL69260",
+ "ISL69269",
+ "RTQ6056",
+ "LTC4287",
+ "LTC4282",
+ "EMC1403",
+ "EMC1413",
+ "NVME1000",
+ "XDPE11280",
+ "XDPE132G5C",
+ "XDPE152C4",
+ "XDPE152C4D",
+ "PT5161L",
+ "RAA228000",
+ "RAA228004",
+ "HDC1080",
+ "SI7020",
+ "CRPS185",
+ "DPS310",
+ "LM25066",
+ "W83773G",
+ "UCD90160",
+ "UCD90320",
+ "EmmcDevice",
+ "HostCpuUtilization",
+ "MB Upstream Port",
+ "DownstreamPort",
+ "MultiNodeID",
+ "MultiNodePresence",
+ "PSUPresence",
+ "CFMSensor",
+ "Intel HSBP CPLD",
+ "IntelHsbpFruDevice",
+ "IntelHsbpTempSensor",
+ "GenericSMBusMux",
+ "cffps",
+ "ChassisIntrusionSensor",
+ "ExitAirTempSensor",
+ "ExternalSensor",
+ "FanRedundancy",
+ "PURedundancy",
+ "NMSensor",
+ "PCA9543Mux",
+ "PCA9544Mux",
+ "PCA9545Mux",
+ "PCA9546Mux",
+ "PSM7",
+ "JC42",
+ "MCP9600"
+ ]
}
}
}