schemas: inline 'ConnectsToType' and 'PowerPort' property
Since only the DownstreamPort is using these properties,
define them in the DownstreamPort definition.
Tested: Schema Validator pass
Change-Id: I9d4b82974de24f3e22db9853ae3b6c07e331e4a3
Signed-off-by: Oliver Brewka <oliver.brewka@9elements.com>
diff --git a/schemas/topology.json b/schemas/topology.json
index c076bb7..b5e1a18 100644
--- a/schemas/topology.json
+++ b/schemas/topology.json
@@ -26,10 +26,11 @@
},
"ConnectsToType": {
"description": "Should be equal to the 'Type' property on the upstream port",
- "$ref": "#/$defs/Types/ConnectsToType"
+ "type": "string",
+ "const": "MB Upstream Port"
},
"PowerPort": {
- "$ref": "#/$defs/Types/PowerPort"
+ "type": "boolean"
},
"Type": {
"type": "string",
@@ -40,15 +41,8 @@
"type": "object"
},
"Types": {
- "ConnectsToType": {
- "type": "string",
- "const": "MB Upstream Port"
- },
"Name": {
"type": "string"
- },
- "PowerPort": {
- "type": "boolean"
}
}
}