Files
chrome-extenstions/foxyproxy/content/schema.json
2026-01-20 21:53:59 +03:30

66 lines
2.0 KiB
JSON

{
"type": "object",
"required": ["mode", "data"],
"properties": {
"mode": {"type": "string"},
"sync": {"type": "boolean"},
"autoBackup": {"type": "boolean"},
"passthrough": {"type": "string"},
"theme": {"type": "string"},
"data": {
"type": "array",
"minItems": 1,
"items": {
"type": "object",
"properties": {
"active": {"type": "boolean"},
"title": {"type": "string"},
"type": {"type": "string", "enum": ["http", "https", "socks4", "socks5", "pac", "direct"]},
"hostname": {"type": "string", "format": "hostname"},
"port": {"type": "string", "pattern": "^\\d*$"},
"username": {"type": "string"},
"password": {"type": "string"},
"cc": {"type": "string", "pattern": "^([A-Z]{2}|)$"},
"city": {"type": "string"},
"color": {"type": "string"},
"pac": {"type": "string"},
"pacString": {"type": "string"},
"proxyDNS": {"type": "boolean"},
"include": {
"type": "array",
"id": "include",
"items": {
"type": "object",
"properties": {
"type": {"type": "string", "enum": ["wildcard", "regex", "match"]},
"title": {"type": "string"},
"pattern": {"type": "string"},
"active": {"type": "boolean"}
},
"required": ["type", "title", "pattern", "active"]
}
},
"exclude": {"$ref": "include"},
"tabProxy": {"$ref": "include"}
}
}
},
"container": {
"type": "object",
"properties": {
"incognito": {"type": "string"},
"container-1": {"type": "string"},
"container-2": {"type": "string"}
}
},
"commands": {
"type": "object",
"properties": {
"setProxy": {"type": "string"},
"setTabProxy": {"type": "string"},
"includeHost": {"type": "string"},
"excludeHost": {"type": "string"}
}
}
}
}