Skip to content
Snippets Groups Projects
Commit ba05a2da authored by JORGE SASIAIN's avatar JORGE SASIAIN
Browse files

NAT-66: change oneOf to anyOf

parent c1cf60c6
No related branches found
No related tags found
No related merge requests found
...@@ -22,7 +22,7 @@ The following example indicates the schema for the configuration file required t ...@@ -22,7 +22,7 @@ The following example indicates the schema for the configuration file required t
"hostname":"localhost", "hostname":"localhost",
"dbname":"mydb" "dbname":"mydb"
}, },
"router":{ "ssh":{
"username":"user", "username":"user",
"password":"pass", "password":"pass",
"private-key":"/path/to/private/key" "private-key":"/path/to/private/key"
...@@ -30,7 +30,7 @@ The following example indicates the schema for the configuration file required t ...@@ -30,7 +30,7 @@ The following example indicates the schema for the configuration file required t
} }
} }
All "mysql" parameters are mandatory. For "router", username is mandatory, and either password or private-key must be provided. ssh-config is optional. All "mysql" parameters are mandatory. For "ssh", username is mandatory, and either password or private-key must be provided. ssh-config is optional.
Excuting the client Excuting the client
--------------------- ---------------------
......
...@@ -24,7 +24,7 @@ CONFIG_SCHEMA = { ...@@ -24,7 +24,7 @@ CONFIG_SCHEMA = {
'private-key': {'type': 'string'}, 'private-key': {'type': 'string'},
'ssh-config': {'type': 'string'} 'ssh-config': {'type': 'string'}
}, },
'oneOf': [ 'anyOf': [
{ {
'required': ['username', 'password'] 'required': ['username', 'password']
}, },
......
0% Loading or .
You are about to add 0 people to the discussion. Proceed with caution.
Please register or to comment