schemas: Add Decorator.Revision interface
This adds property `Version` under `xyz.openbmc_project.Inventory.
Decorator.Revision` as described in [1]
[1] https://github.com/openbmc/phosphor-dbus-interfaces/blob/master/yaml/xyz/openbmc_project/Inventory/Decorator/Revision.interface.yaml
Change-Id: Icd28f56e2dfccd824cee3ff14b6cbbd0ef17303f
Signed-off-by: Delphine CC Chiu <Delphine_CC_Chiu@wiwynn.com>
diff --git a/schemas/global.json b/schemas/global.json
index 5a8f95d..b5cd741 100644
--- a/schemas/global.json
+++ b/schemas/global.json
@@ -114,6 +114,9 @@
"xyz.openbmc_project.Inventory.Decorator.Slot": {
"$ref": "openbmc-dbus.json#/definitions/xyz/openbmc_project/Inventory/Decorator/Slot"
},
+ "xyz.openbmc_project.Inventory.Decorator.Revision": {
+ "$ref": "openbmc-dbus.json#/definitions/xyz/openbmc_project/Inventory/Decorator/Revision"
+ },
"xyz.openbmc_project.Inventory.Item.Board.Motherboard": {
"$ref": "openbmc-dbus.json#/definitions/xyz/openbmc_project/Inventory/Item/Board/Motherboard"
},
diff --git a/schemas/openbmc-dbus.json b/schemas/openbmc-dbus.json
index 99de989..2819a8f 100644
--- a/schemas/openbmc-dbus.json
+++ b/schemas/openbmc-dbus.json
@@ -75,6 +75,16 @@
},
"required": ["SlotNumber"],
"type": "object"
+ },
+ "Revision": {
+ "additionalProperties": false,
+ "properties": {
+ "Version": {
+ "type": "string"
+ }
+ },
+ "required": ["Version"],
+ "type": "object"
}
},
"Item": {