fix python

This commit is contained in:
John Smith 2023-07-04 13:11:22 -04:00
parent c682de9c27
commit bd7c5701fe
2 changed files with 23 additions and 33 deletions

View File

@ -2719,6 +2719,17 @@
} }
} }
}, },
"FourCC": {
"description": "FOURCC code",
"type": "array",
"items": {
"type": "integer",
"format": "uint8",
"minimum": 0.0
},
"maxItems": 4,
"minItems": 4
},
"LatencyStats": { "LatencyStats": {
"type": "object", "type": "object",
"required": [ "required": [
@ -3203,35 +3214,14 @@
"VeilidConfigCapabilities": { "VeilidConfigCapabilities": {
"type": "object", "type": "object",
"required": [ "required": [
"protocol_accept_tcp", "disable"
"protocol_accept_ws",
"protocol_accept_wss",
"protocol_connect_tcp",
"protocol_connect_ws",
"protocol_connect_wss",
"protocol_udp"
], ],
"properties": { "properties": {
"protocol_accept_tcp": { "disable": {
"type": "boolean" "type": "array",
}, "items": {
"protocol_accept_ws": { "$ref": "#/definitions/FourCC"
"type": "boolean" }
},
"protocol_accept_wss": {
"type": "boolean"
},
"protocol_connect_tcp": {
"type": "boolean"
},
"protocol_connect_ws": {
"type": "boolean"
},
"protocol_connect_wss": {
"type": "boolean"
},
"protocol_udp": {
"type": "boolean"
} }
} }
}, },

View File

@ -53,13 +53,13 @@ class CryptoKind(StrEnum):
class Capability(StrEnum): class Capability(StrEnum):
CAP_WILL_ROUTE = "ROUT" CAP_ROUTE = "ROUT"
CAP_TUNNEL = "TUNL" CAP_TUNNEL = "TUNL"
CAP_WILL_SIGNAL = "SGNL" CAP_SIGNAL = "SGNL"
CAP_WILL_RELAY = "RLAY" CAP_RELAY = "RLAY"
CAP_WILL_VALIDATE_DIAL_INFO = "DIAL" CAP_VALIDATE_DIAL_INFO = "DIAL"
CAP_WILL_DHT = "DHTV" CAP_DHT = "DHTV"
CAP_WILL_APPMESSAGE = "APPM" CAP_APPMESSAGE = "APPM"
CAP_BLOCKSTORE = "BLOC" CAP_BLOCKSTORE = "BLOC"