Skip to content

Add condition existence check in post-init method #344

New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

Merged
merged 1 commit into from
Apr 13, 2025
Merged

Conversation

thomaspatzke
Copy link
Member

Introduce a validation step in the post-init method to ensure that a Sigma rule contains at least one condition. This change raises an error if the condition is empty or None. Additionally, add tests to verify the behavior when no conditions are provided.

@thomaspatzke thomaspatzke merged commit 0fe8933 into main Apr 13, 2025
30 checks passed
@thomaspatzke thomaspatzke deleted the issue-341 branch April 13, 2025 08:39
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
None yet
Projects
None yet
Development

Successfully merging this pull request may close these issues.

1 participant