Improve protections work

This commit is contained in:
Matthias
2020-10-15 07:38:00 +02:00
parent f39a534fc0
commit 816703b8e1
4 changed files with 21 additions and 5 deletions

View File

@@ -193,7 +193,16 @@ CONF_SCHEMA = {
'type': 'object',
'properties': {
'method': {'type': 'string', 'enum': AVAILABLE_PAIRLISTS},
'config': {'type': 'object'}
},
'required': ['method'],
}
},
'protections': {
'type': 'array',
'items': {
'type': 'object',
'properties': {
'method': {'type': 'string', 'enum': AVAILABLE_PROTECTIONS},
},
'required': ['method'],
}