validate value of sell object

This commit is contained in:
Kamontat Chantrachirathumrong 2021-05-27 01:24:55 +07:00 committed by GitHub
parent fafdf04bea
commit e8070965d7
No known key found for this signature in database
GPG Key ID: 4AEE18F83AFDEB23

View File

@ -260,7 +260,11 @@ CONF_SCHEMA = {
'enum': TELEGRAM_SETTING_OPTIONS, 'enum': TELEGRAM_SETTING_OPTIONS,
'default': 'off' 'default': 'off'
}, },
'sell': {'type': 'object'}, 'sell': {'type': 'object',
'additionalProperties': {
'type': 'string',
'enum': TELEGRAM_SETTING_OPTIONS
}},
'sell_cancel': {'type': 'string', 'enum': TELEGRAM_SETTING_OPTIONS}, 'sell_cancel': {'type': 'string', 'enum': TELEGRAM_SETTING_OPTIONS},
'sell_fill': { 'sell_fill': {
'type': 'string', 'type': 'string',