From e8070965d70bcfacd3bc86d74f65a4039123409f Mon Sep 17 00:00:00 2001 From: Kamontat Chantrachirathumrong Date: Thu, 27 May 2021 01:24:55 +0700 Subject: [PATCH] validate value of sell object --- freqtrade/constants.py | 6 +++++- 1 file changed, 5 insertions(+), 1 deletion(-) diff --git a/freqtrade/constants.py b/freqtrade/constants.py index 7bb9895fe..a9b073352 100644 --- a/freqtrade/constants.py +++ b/freqtrade/constants.py @@ -260,7 +260,11 @@ CONF_SCHEMA = { 'enum': TELEGRAM_SETTING_OPTIONS, 'default': 'off' }, - 'sell': {'type': 'object'}, + 'sell': {'type': 'object', + 'additionalProperties': { + 'type': 'string', + 'enum': TELEGRAM_SETTING_OPTIONS + }}, 'sell_cancel': {'type': 'string', 'enum': TELEGRAM_SETTING_OPTIONS}, 'sell_fill': { 'type': 'string',