Skip to content

Commit 2029654

Browse files
ESQL validation support fix (#5970)
1 parent 7a54f8b commit 2029654

2 files changed

Lines changed: 3 additions & 2 deletions

File tree

detection_rules/index_mappings.py

Lines changed: 2 additions & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -17,6 +17,7 @@
1717
from semver import Version
1818

1919
from . import ecs, integrations, misc, utils
20+
from .config import load_current_package_version
2021
from .esql import EventDataset
2122
from .esql_errors import (
2223
EsqlKibanaBaseError,
@@ -510,7 +511,7 @@ def prepare_mappings( # noqa: PLR0913
510511
custom_mapping.update({index: index_mapping})
511512

512513
# Load ECS in an index mapping format (nested schema)
513-
current_version = Version.parse(stack_version, optional_minor_and_patch=True)
514+
current_version = Version.parse(load_current_package_version(), optional_minor_and_patch=True)
514515
ecs_schema = get_ecs_schema_mappings(current_version)
515516

516517
# Filter combined mappings based on the provided indices

pyproject.toml

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -1,6 +1,6 @@
11
[project]
22
name = "detection_rules"
3-
version = "1.6.22"
3+
version = "1.6.23"
44
description = "Detection Rules is the home for rules used by Elastic Security. This repository is used for the development, maintenance, testing, validation, and release of rules for Elastic Security’s Detection Engine."
55
readme = "README.md"
66
requires-python = ">=3.12"

0 commit comments

Comments
 (0)