From 08ed99d20cabca76ec1f2f8978a63ff7556193f2 Mon Sep 17 00:00:00 2001 From: Matthias Date: Thu, 25 Jul 2024 20:07:07 +0200 Subject: [PATCH] feat: Add build-helpers json schema extract script --- build_helpers/extract_json_schema.py | 10 ++++++++++ 1 file changed, 10 insertions(+) create mode 100644 build_helpers/extract_json_schema.py diff --git a/build_helpers/extract_json_schema.py b/build_helpers/extract_json_schema.py new file mode 100644 index 000000000..68fa8835e --- /dev/null +++ b/build_helpers/extract_json_schema.py @@ -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)