Schema: Add attributes "PollRate" and "_Scale".
Add two objects: "PollRate" and "iout1_Scale" to schema/legacy.json.
"PollRate" has been implemented in here:
https://gerrit.openbmc-project.xyz/c/openbmc/dbus-sensors/+/38796
test:
Add these two attributes to my configuration file and file can pass to
validate-configs.py.
Signed-off-by: Scron Chang <Scron.Chang@quantatw.com>
Change-Id: Ia8c8047566b57d799af66934cca835a6b199e186
diff --git a/schemas/legacy.json b/schemas/legacy.json
index a8cc2cf..5e9fe82 100644
--- a/schemas/legacy.json
+++ b/schemas/legacy.json
@@ -267,6 +267,12 @@
"pout1_Offset": {
"$ref": "#/definitions/Types/pout1_Offset"
},
+ "iout1_Scale": {
+ "$ref": "#/definitions/Types/iout1_Scale"
+ },
+ "PollRate": {
+ "$ref": "#/definitions/Types/PollRate"
+ },
"Type": {
"$ref": "#/definitions/Types/Type"
}
@@ -621,9 +627,16 @@
"pout1_Offset": {
"type": "number"
},
+ "iout1_Scale": {
+ "type": "number"
+ },
+ "PollRate": {
+ "type": "number"
+ },
"Type": {
"type": "string"
}
}
}
}
+