From b7f9c51bf83442a009e6fe020952420d745a6263 Mon Sep 17 00:00:00 2001 From: abhinavgautam01 Date: Tue, 30 Jun 2026 13:29:56 +0530 Subject: [PATCH] Align config schema folder defaults --- examples/workspace.yaml | 1 + src/maxed_cli/schemas/config.schema.json | 2 +- tests/test_config.py | 8 ++++++++ 3 files changed, 10 insertions(+), 1 deletion(-) diff --git a/examples/workspace.yaml b/examples/workspace.yaml index 9dcaf7c..f5f9f1d 100644 --- a/examples/workspace.yaml +++ b/examples/workspace.yaml @@ -14,6 +14,7 @@ workspace: - configs - fixtures - exports + - pipeline connectors: - name: ledger-sandbox diff --git a/src/maxed_cli/schemas/config.schema.json b/src/maxed_cli/schemas/config.schema.json index 79e2a09..bb39070 100644 --- a/src/maxed_cli/schemas/config.schema.json +++ b/src/maxed_cli/schemas/config.schema.json @@ -49,7 +49,7 @@ "description": "Sub-folders to create under the workspace root.", "items": { "type": "string", "minLength": 1 }, "uniqueItems": true, - "default": ["workpapers", "configs", "fixtures", "exports"] + "default": ["workpapers", "configs", "fixtures", "exports", "pipeline"] } } }, diff --git a/tests/test_config.py b/tests/test_config.py index 8596b17..3c6e72a 100644 --- a/tests/test_config.py +++ b/tests/test_config.py @@ -12,6 +12,8 @@ load_document, validate_config_file, ) +from maxed_cli.scaffold import DEFAULT_FOLDERS +from maxed_cli.schemas import CONFIG_SCHEMA, load_schema VALID = { "version": 1, @@ -42,6 +44,12 @@ def test_valid_config_yaml(tmp_path: Path) -> None: assert validate_config_file(cfg).ok +def test_schema_folder_default_matches_scaffold_default() -> None: + schema = load_schema(CONFIG_SCHEMA) + default = schema["properties"]["workspace"]["properties"]["folders"]["default"] + assert default == DEFAULT_FOLDERS + + def test_missing_required_field(tmp_path: Path) -> None: bad = {"version": 1, "workspace": {"root": "./ws"}} cfg = _write(tmp_path / "c.json", bad)