mirror of
https://github.com/freqtrade/freqtrade.git
synced 2024-11-10 02:12:01 +00:00
feat: Add build-helpers json schema extract script
This commit is contained in:
parent
6454a7a453
commit
08ed99d20c
10
build_helpers/extract_json_schema.py
Normal file
10
build_helpers/extract_json_schema.py
Normal file
|
@ -0,0 +1,10 @@
|
|||
from pathlib import Path
|
||||
|
||||
import rapidjson
|
||||
|
||||
from freqtrade.configuration.config_schema import CONF_SCHEMA
|
||||
|
||||
|
||||
schema_filename = Path(Path(__file__).parent.parent / "schema.json")
|
||||
with schema_filename.open("w") as f:
|
||||
rapidjson.dump(CONF_SCHEMA, f, indent=2)
|
Loading…
Reference in New Issue
Block a user