Werk #15678: schemas: regex pattern updates

Component REST API
Title schemas: regex pattern updates
Date Apr 19, 2023
Level Trivial Change
Class Bug Fix
Compatibility Compatible - no manual interaction needed
Checkmk versions & editions
2.3.0b1
Not yet released
Checkmk Raw (CRE), Checkmk Enterprise (CEE), Checkmk Cloud (CCE), Checkmk MSP (CME)
2.3.0b1 Checkmk Raw (CRE), Checkmk Enterprise (CEE), Checkmk Cloud (CCE), Checkmk MSP (CME)
2.2.0b6 Checkmk Raw (CRE), Checkmk Enterprise (CEE), Checkmk Cloud (CCE), Checkmk MSP (CME)

This werk introduces a fix to the pattern attribute in various rest-api schemas.

To avoid partial matches, regex patterns should start with the caret and end with the dollar symbol.

Also, the + symbol should be preferred over the * symbol as the * symbol allowed for zero or more matches instead of 1 or more which is what the + symbol gives us.

For patterns that list possible options, e.g. monday|tuesday|wedneday... etc they have instead been removed and replaced with enums.

To the list of all Werks