* Allows for generating top-level types for any embedded struct so
that sub-types can be properly instantiated from calling code
* Specifying `-no-embedded-types` will generate top-level types
rather than embedding the struct
* Refactored "Device" API
* All fields set to `omitempty` because it describes all possible
device types, so effectively any field could be omitted any time
* Fixed `get` call for "Device" API; replacing `rest` with `stat`
* Generated `get` and `update` calls for `Setting*` APIs
* Added `5.14.23` JSON files
36 lines
1.6 KiB
JSON
36 lines
1.6 KiB
JSON
{
|
|
"conf_source": "manual|radio-ai",
|
|
"date": "^$|^(20[0-9]{2}-(0[1-9]|1[0-2])-(0[1-9]|[12][0-9]|3[01])T([01][0-9]|2[0-3]):[0-5][0-9]:[0-5][0-9])Z?$",
|
|
"fitness": "^[0-9]+\\.?[0-9]*$",
|
|
"note": ".{0,1024}",
|
|
"radio": "na|ng|ng\\+na",
|
|
"radio_table": [{
|
|
"device_mac": "^([0-9A-Fa-f]{2}:){5}([0-9A-Fa-f]{2})$",
|
|
"name": "[a-z]*[0-9]*",
|
|
"channel": "[0-9]|[1][0-4]|16|34|36|38|40|42|44|46|48|52|56|60|64|100|104|108|112|116|120|124|128|132|136|140|144|149|153|157|161|165|183|184|185|187|188|189|192|196|auto",
|
|
"backup_channel": "[0-9]|[1][0-4]|16|34|36|38|40|42|44|46|48|52|56|60|64|100|104|108|112|116|120|124|128|132|136|140|144|149|153|157|161|165|183|184|185|187|188|189|192|196|auto",
|
|
"width": "20|40|80|160",
|
|
"tx_power": "[\\d]+|auto",
|
|
"tx_power_mode": "auto|medium|high|low|custom"
|
|
}],
|
|
"satisfaction_table": [{
|
|
"device_mac": "^([0-9A-Fa-f]{2}:){5}([0-9A-Fa-f]{2})$",
|
|
"satisfaction": "^[0-9]+\\.?[0-9]*$"
|
|
}],
|
|
"site_blacklisted_channels": [{
|
|
"channel": "36|38|40|42|44|46|48|52|56|60|64|100|104|108|112|116|120|124|128|132|136|140|144|149|153|157|161|165|183|184|185|187|188|189|192|196",
|
|
"timestamp": "[1-9][0-9]{12}"
|
|
}],
|
|
"ap_blacklisted_channels": [{
|
|
"mac": "^([0-9A-Fa-f]{2}:){5}([0-9A-Fa-f]{2})$",
|
|
"channel": "36|38|40|42|44|46|48|52|56|60|64|100|104|108|112|116|120|124|128|132|136|140|144|149|153|157|161|165|183|184|185|187|188|189|192|196",
|
|
"timestamp": "[1-9][0-9]{12}"
|
|
}],
|
|
"coupling": [{
|
|
"source": "^([0-9A-Fa-f]{2}:){5}([0-9A-Fa-f]{2}).*$",
|
|
"target": "^([0-9A-Fa-f]{2}:){5}([0-9A-Fa-f]{2}).*$",
|
|
"rssi": "-?[0-9]{1,3}"
|
|
}],
|
|
"satisfaction": "^[0-9]+\\.?[0-9]*$"
|
|
}
|