mirror of
https://github.com/freqtrade/freqtrade.git
synced 2025-11-30 17:13:06 +00:00
feat: Add build-helpers json schema extract script
This commit is contained in:
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)
|
||||
Reference in New Issue
Block a user