From 36a532d5506e78eecf055b7b193dcf2fd65123eb Mon Sep 17 00:00:00 2001 From: =?UTF-8?q?Hubert=20S=C4=99kowski?= Date: Fri, 12 Jun 2026 05:54:41 +0200 Subject: [PATCH] fix: extend globalConfig spec for SPL2 converter version --- splunk_add_on_ucc_framework/schema/schema.json | 4 ++++ tests/unit/test_schema.py | 5 +++++ ui/src/types/globalConfig/meta.ts | 1 + 3 files changed, 10 insertions(+) diff --git a/splunk_add_on_ucc_framework/schema/schema.json b/splunk_add_on_ucc_framework/schema/schema.json index 9dac70016..64c57b5e4 100644 --- a/splunk_add_on_ucc_framework/schema/schema.json +++ b/splunk_add_on_ucc_framework/schema/schema.json @@ -2587,6 +2587,10 @@ "type": "string", "description": "Version of UCC used during build process. Do not use." }, + "_confSpl2ConverterVersion": { + "type": "string", + "description": "Version of conf-spl2-converter used when generating SPL2 templates. Do not use." + }, "hideUCCVersion": { "type": "boolean", "description": "Hide the label 'Made with UCC' on the Configuration page" diff --git a/tests/unit/test_schema.py b/tests/unit/test_schema.py index 4076a371c..797f3d0df 100644 --- a/tests/unit/test_schema.py +++ b/tests/unit/test_schema.py @@ -163,6 +163,11 @@ def test_rest_handler_without_ui(schema_validate, config): schema_validate(config) +def test_meta_conf_spl2_converter_version(schema_validate, config): + config["meta"]["_confSpl2ConverterVersion"] = "0.13.2" + schema_validate(config) + + @pytest.mark.parametrize("value", ["#65A637", "#abc"]) def test_meta_nav_color_valid(schema_validate, config, value): config["meta"]["navColor"] = value diff --git a/ui/src/types/globalConfig/meta.ts b/ui/src/types/globalConfig/meta.ts index f4d0e7bc8..c26619151 100644 --- a/ui/src/types/globalConfig/meta.ts +++ b/ui/src/types/globalConfig/meta.ts @@ -9,6 +9,7 @@ export const meta = z version: z.string(), schemaVersion: z.string().optional(), _uccVersion: z.string().optional(), + _confSpl2ConverterVersion: z.string().optional(), hideUCCVersion: z.boolean().optional(), checkForUpdates: z.boolean().default(true).optional(), searchViewDefault: z.boolean().default(false).optional(),