blob: b5e1a1894b29d1422e1ab5a3278b104463255128 [file] [log] [blame]
Oliver Brewka4a6f4052025-07-16 15:26:39 +02001{
2 "$schema": "http://json-schema.org/draft-07/schema#",
3 "$defs": {
4 "Port": {
5 "description": "https://github.com/openbmc/docs/blob/master/designs/physical-topology.md",
6 "additionalProperties": false,
7 "properties": {
8 "Name": {
9 "$ref": "#/$defs/Types/Name"
10 },
11 "Type": {
12 "description": "This enum may be extended as described in the design",
13 "type": "string",
14 "enum": ["MB Upstream Port"]
15 }
16 },
17 "required": ["Name", "Type"],
18 "type": "object"
19 },
20 "DownstreamPort": {
21 "description": "https://github.com/openbmc/docs/blob/master/designs/physical-topology.md",
22 "additionalProperties": false,
23 "properties": {
24 "Name": {
25 "$ref": "#/$defs/Types/Name"
26 },
27 "ConnectsToType": {
28 "description": "Should be equal to the 'Type' property on the upstream port",
Oliver Brewka81f1ad42025-07-16 16:01:10 +020029 "type": "string",
30 "const": "MB Upstream Port"
Oliver Brewka4a6f4052025-07-16 15:26:39 +020031 },
32 "PowerPort": {
Oliver Brewka81f1ad42025-07-16 16:01:10 +020033 "type": "boolean"
Oliver Brewka4a6f4052025-07-16 15:26:39 +020034 },
35 "Type": {
36 "type": "string",
37 "const": "DownstreamPort"
38 }
39 },
40 "required": ["Name", "Type", "ConnectsToType"],
41 "type": "object"
42 },
43 "Types": {
Oliver Brewka4a6f4052025-07-16 15:26:39 +020044 "Name": {
45 "type": "string"
Oliver Brewka4a6f4052025-07-16 15:26:39 +020046 }
47 }
48 }
49}