Disallow privateKey and privateKeyPath to both be present

schemas
Kelvin Schoofs 6 years ago
parent d92e7004c6
commit 27dec3277d

@ -70,7 +70,11 @@
"proxy": { "proxy": {
"type": "object", "type": "object",
"description": "Define a SOCKS 4 or SOCKS 5 proxy to connect through", "description": "Define a SOCKS 4 or SOCKS 5 proxy to connect through",
"required": ["host", "port", "type"], "required": [
"host",
"port",
"type"
],
"properties": { "properties": {
"host": { "host": {
"type": "string", "type": "string",
@ -82,7 +86,10 @@
}, },
"type": { "type": {
"description": "The type of the proxy (socks4/socks5)", "description": "The type of the proxy (socks4/socks5)",
"enum": ["socks4", "socks5"] "enum": [
"socks4",
"socks5"
]
} }
} }
} }
@ -110,13 +117,17 @@
"$ref": "#/definitions/authentication-types/password" "$ref": "#/definitions/authentication-types/password"
}, },
{ {
"$ref": "#/definitions/authentication-types/key" "$ref": "#/definitions/authentication-types/agent"
},
{
"$ref": "#/definitions/authentication-types/key-path"
}, },
{ {
"$ref": "#/definitions/authentication-types/agent" "oneOf": [
{
"$ref": "#/definitions/authentication-types/key"
},
{
"$ref": "#/definitions/authentication-types/key-path"
}
]
} }
] ]
}, },

Loading…
Cancel
Save