blob: b5e1a1894b29d1422e1ab5a3278b104463255128 [file] [log] [blame]
{
"$schema": "http://json-schema.org/draft-07/schema#",
"$defs": {
"Port": {
"description": "https://github.com/openbmc/docs/blob/master/designs/physical-topology.md",
"additionalProperties": false,
"properties": {
"Name": {
"$ref": "#/$defs/Types/Name"
},
"Type": {
"description": "This enum may be extended as described in the design",
"type": "string",
"enum": ["MB Upstream Port"]
}
},
"required": ["Name", "Type"],
"type": "object"
},
"DownstreamPort": {
"description": "https://github.com/openbmc/docs/blob/master/designs/physical-topology.md",
"additionalProperties": false,
"properties": {
"Name": {
"$ref": "#/$defs/Types/Name"
},
"ConnectsToType": {
"description": "Should be equal to the 'Type' property on the upstream port",
"type": "string",
"const": "MB Upstream Port"
},
"PowerPort": {
"type": "boolean"
},
"Type": {
"type": "string",
"const": "DownstreamPort"
}
},
"required": ["Name", "Type", "ConnectsToType"],
"type": "object"
},
"Types": {
"Name": {
"type": "string"
}
}
}
}