schemas: legacy: enumerate 'Class' field
This helps to document which values are valid for this field. The set of
values has been taken from what is currently present in the upstream
configurations.
Tested: Schema Validator Pass
Change-Id: I5036902e0fab391d6f9549146c379e2ca16f6a44
Signed-off-by: Alexander Hansen <alexander.hansen@9elements.com>
diff --git a/schemas/legacy.json b/schemas/legacy.json
index 9b63054..15326b5 100644
--- a/schemas/legacy.json
+++ b/schemas/legacy.json
@@ -686,7 +686,21 @@
"type": "array"
},
"Class": {
- "type": "string"
+ "type": "string",
+ "enum": [
+ "fan",
+ "temp",
+ "i2c",
+ "Aspeed2600_Hwmon",
+ "METemp",
+ "IpmbDevice",
+ "twin_lake",
+ "Gpio",
+ "MOSTemp",
+ "MOSTempLinear",
+ "PxeBridgeTemp",
+ "HSCBridge"
+ ]
},
"Connector": {
"properties": {