Skip to content

Commit ff0fcdb

Browse files
Add Required to the Annotation
1 parent 9f57937 commit ff0fcdb

File tree

2 files changed

+2
-2
lines changed

2 files changed

+2
-2
lines changed

detection_rules/schemas/definitions.py

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -244,7 +244,7 @@ def validator_wrapper(value: Any) -> Any:
244244
]
245245
PositiveInteger = Annotated[int, fields.Integer(validate=validate.Range(min=1))]
246246
RiskScore = Annotated[int, fields.Integer(validate=validate.Range(min=1, max=100))]
247-
RuleName = Annotated[str, fields.String(validate=elastic_rule_name_regexp(NAME_PATTERN))]
247+
RuleName = Annotated[str, fields.String(validate=elastic_rule_name_regexp(NAME_PATTERN), required=True)]
248248
SemVer = Annotated[str, fields.String(validate=validate.Regexp(VERSION_PATTERN))]
249249
SemVerMinorOnly = Annotated[str, fields.String(validate=validate.Regexp(MINOR_SEMVER))]
250250
Sha256 = Annotated[str, fields.String(validate=validate.Regexp(SHA256_PATTERN))]

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.4.6"
3+
version = "1.4.7"
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)