1
0
mirror of https://github.com/kellyjonbrazil/jc.git synced 2025-06-21 00:19:42 +02:00

add initial schema doc

This commit is contained in:
Kelly Brazil
2021-10-13 11:07:09 -06:00
parent 4a3656562f
commit 6078a411ef

View File

@ -19,9 +19,84 @@ Schema:
[
{
"lsusb": string,
"bar": boolean,
"baz": integer
"bus": string,
"device": string,
"id": string,
"description": string,
"device_descriptor": {
"attribute": {
"value": string,
"description": string
},
"configuration_descriptor": {
"attribute": {
"value": string,
"description": string
},
"interface_association": {
"value": string,
"description": string
},
"interface_descriptors": [
{
"attribute": {
"value": string,
"description": string
},
"cdc_header": {
"attribute": {
"value": string,
"description": string
}
},
"cdc_call_management": {
"attribute": {
"value": string,
"description": string
}
},
"cdc_acm": {
"attribute": {
"value": string,
"description": string
}
},
"cdc_union": {
"attribute": {
"value": string,
"description": string
}
},
"endpoint_descriptors": [
{
"attribute": {
"value": string,
"description": string
}
}
]
}
]
}
},
"hub_descriptor": {
"attribute": {
"value": string,
"description": string
},
"hub_port_status": {
"attribute": {
"value": string,
"description": string
}
}
},
"device_status": {
"attribute": {
"value": string,
"description": string
}
}
}
]
@ -35,7 +110,7 @@ Examples:
"""
import jc.utils
from jc.parsers.universal import sparse_table_parse
from rich import print
# from rich import print
class info():