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
Branches
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
"hostname":"localhost",
"dbname":"mydb"
},
"router":{
"ssh":{
"username":"user",
"password":"pass",
"private-key":"/path/to/private/key"
......@@ -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
---------------------
......
......@@ -24,7 +24,7 @@ CONFIG_SCHEMA = {
'private-key': {'type': 'string'},
'ssh-config': {'type': 'string'}
},
'oneOf': [
'anyOf': [
{
'required': ['username', 'password']
},
......
0% Loading or .
You are about to add 0 people to the discussion. Proceed with caution.
Please register or to comment