Align quoting of json schema

This commit is contained in:
Matthias 2019-11-25 07:06:55 +01:00
parent e7be742c58
commit 646a9d12b2

View File

@ -70,9 +70,9 @@ CONF_SCHEMA = {
'ticker_interval': {'type': 'string', 'enum': TIMEFRAMES}, 'ticker_interval': {'type': 'string', 'enum': TIMEFRAMES},
'stake_currency': {'type': 'string', 'enum': ['BTC', 'XBT', 'ETH', 'USDT', 'EUR', 'USD']}, 'stake_currency': {'type': 'string', 'enum': ['BTC', 'XBT', 'ETH', 'USDT', 'EUR', 'USD']},
'stake_amount': { 'stake_amount': {
"type": ["number", "string"], 'type': ['number', 'string'],
"minimum": 0.0001, 'minimum': 0.0001,
"pattern": UNLIMITED_STAKE_AMOUNT 'pattern': UNLIMITED_STAKE_AMOUNT
}, },
'fiat_display_currency': {'type': 'string', 'enum': SUPPORTED_FIAT}, 'fiat_display_currency': {'type': 'string', 'enum': SUPPORTED_FIAT},
'dry_run': {'type': 'boolean'}, 'dry_run': {'type': 'boolean'},
@ -197,8 +197,8 @@ CONF_SCHEMA = {
'listen_ip_address': {'format': 'ipv4'}, 'listen_ip_address': {'format': 'ipv4'},
'listen_port': { 'listen_port': {
'type': 'integer', 'type': 'integer',
"minimum": 1024, 'minimum': 1024,
"maximum": 65535 'maximum': 65535
}, },
'username': {'type': 'string'}, 'username': {'type': 'string'},
'password': {'type': 'string'}, 'password': {'type': 'string'},
@ -253,19 +253,19 @@ CONF_SCHEMA = {
'edge': { 'edge': {
'type': 'object', 'type': 'object',
'properties': { 'properties': {
"enabled": {'type': 'boolean'}, 'enabled': {'type': 'boolean'},
"process_throttle_secs": {'type': 'integer', 'minimum': 600}, 'process_throttle_secs': {'type': 'integer', 'minimum': 600},
"calculate_since_number_of_days": {'type': 'integer'}, 'calculate_since_number_of_days': {'type': 'integer'},
"allowed_risk": {'type': 'number'}, 'allowed_risk': {'type': 'number'},
"capital_available_percentage": {'type': 'number'}, 'capital_available_percentage': {'type': 'number'},
"stoploss_range_min": {'type': 'number'}, 'stoploss_range_min': {'type': 'number'},
"stoploss_range_max": {'type': 'number'}, 'stoploss_range_max': {'type': 'number'},
"stoploss_range_step": {'type': 'number'}, 'stoploss_range_step': {'type': 'number'},
"minimum_winrate": {'type': 'number'}, 'minimum_winrate': {'type': 'number'},
"minimum_expectancy": {'type': 'number'}, 'minimum_expectancy': {'type': 'number'},
"min_trade_number": {'type': 'number'}, 'min_trade_number': {'type': 'number'},
"max_trade_duration_minute": {'type': 'integer'}, 'max_trade_duration_minute': {'type': 'integer'},
"remove_pumps": {'type': 'boolean'} 'remove_pumps': {'type': 'boolean'}
}, },
'required': ['process_throttle_secs', 'allowed_risk', 'capital_available_percentage'] 'required': ['process_throttle_secs', 'allowed_risk', 'capital_available_percentage']
} }