Werk #17876: Ruleset API: Actually use validation of SimpleLevels and Levels

Component Checks & agents
Title Ruleset API: Actually use validation of SimpleLevels and Levels
Date Mar 28, 2025
Level Trivial Change
Class Bug Fix
Compatibility Compatible - no manual interaction needed
Checkmk versions & editions
2.5.0b1
Not yet released
Checkmk Raw (CRE), Checkmk Enterprise (CEE), Checkmk Cloud (CCE), Checkmk MSP (CME)
2.4.0b4 Checkmk Raw (CRE), Checkmk Enterprise (CEE), Checkmk Cloud (CCE), Checkmk MSP (CME)
2.3.0p31
Not yet released
Checkmk Raw (CRE), Checkmk Enterprise (CEE), Checkmk Cloud (CCE), Checkmk MSP (CME)

This change is relevant for plugin developers using the custom_validate option for Levels and SimpleLevels.

Previously, validation functions defined via SimpleLevels.custom_validate and Levels.custom_validate were not executed, resulting in no validation for levels specified with Ruleset API v1. custom_validate functions defined for FormSpecs in the form_spec_template field worked as intended, however.

No shipped rules are affected by this.

To the list of all Werks