sonic-buildimage/platform/pddf/i2c/utils/schema/QSFP.schema

93 lines
2.0 KiB
Plaintext
Raw Normal View History

{
"$schema": "http://json-schema.org/draft-04/schema#",
"type": "object",
"properties": {
"QSFP": {
"type": "object",
"properties": {
"dev_info": {
"type": "object",
"properties": {
"device_type": {
"type": "string"
},
"device_name": {
"type": "string"
},
"device_parent": {
"type": "string"
}
},
"required": [
"device_type",
"device_name",
"device_parent"
]
},
"dev_attr": {
"type": "object",
"properties": {
"dev_idx": {
"type": "string"
}
},
"required": [
"dev_idx"
]
},
"i2c": {
"type": "object",
"properties": {
"interface": {
"type": "array",
"items": [
{
"type": "object",
"properties": {
"itf": {
"type": "string"
},
"dev": {
"type": "string"
}
},
"required": [
"itf",
"dev"
]
},
{
"type": "object",
"properties": {
"itf": {
"type": "string"
},
"dev": {
"type": "string"
}
},
"required": [
"itf",
"dev"
]
}
]
}
},
"required": [
"interface"
]
}
},
"required": [
"dev_info",
"dev_attr",
"i2c"
]
}
},
"required": [
"QSFP"
]
}