Werk #15678: schemas: regex pattern updates
Komponente | REST API | ||||
Titel | schemas: regex pattern updates | ||||
Datum | 19.04.2023 | ||||
Level | Kleine Änderung | ||||
Klasse | Bugfix | ||||
Kompatibilität | Kompatibel - benötigt kein manuelles Eingreifen | ||||
Checkmk versions & editions |
|
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.