Skip to content

Commit 0f521a0

Browse files
authored
Fix value lists within exception lists (#5963)
* Fix value lists within exception lists
1 parent ff369b4 commit 0f521a0

2 files changed

Lines changed: 3 additions & 3 deletions

File tree

detection_rules/exception.py

Lines changed: 2 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -5,7 +5,7 @@
55
"""Rule exceptions data."""
66

77
from collections import defaultdict
8-
from dataclasses import dataclass
8+
from dataclasses import dataclass, field
99
from datetime import UTC, datetime
1010
from pathlib import Path
1111
from typing import Any, get_args
@@ -72,7 +72,7 @@ class ListObject:
7272
type: definitions.EsDataTypes
7373

7474
operator: definitions.ExceptionEntryOperator
75-
list_vals: ListObject | None = None
75+
list_vals: ListObject | None = field(default=None, metadata={"data_key": "list"})
7676
value: str | None | list[str] = None
7777

7878
@validates_schema

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.26"
3+
version = "1.6.27"
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)