Werk 16364 was adapted. The following is the new Werk, a diff is shown at the end of the
message.
[//]: # (werk v2)
# swagger: Fix parameters not working in Swagger
key | value
---------- | ---
date | 2024-02-29T13:52:31+00:00
version | 2.4.0b1
class | fix
edition | cre
component | rest-api
level | 1
compatible | yes
Since not all Python regexes are ECMA (JavaScript) compliant, several parameter fields did
not work in Swagger. This werk solves the problem by adjusting the regexes to be
compatible with JavaScript.
------------------------------------<diff>-------------------------------------------
[//]: # (werk v2)
- # tag_group: change the identification field from 'ident' to 'id'
+ # swagger: Fix parameters not working in Swagger
key | value
---------- | ---
- date | 2024-01-29T13:13:54+00:00
? ^ ----
+ date | 2024-02-29T13:52:31+00:00
? ^ ++++
version | 2.4.0b1
class | fix
edition | cre
component | rest-api
level | 1
- compatible | no
? ^^
+ compatible | yes
? ^^^
+ Since not all Python regexes are ECMA (JavaScript) compliant, several parameter fields
did not work in Swagger. This werk solves the problem by adjusting the regexes to be
compatible with JavaScript.
- Before this Werk, when creating a tag group, the **ident** field was used to provide its
identification as well as that of the tags associated to the group, however the
information was returned in the **id** field. This Werk unifies the names and now the
**ident** fields are renamed to **id**. Users should adapt their scripts accordingly.
-
- For comptatibility reasons CheckMK 2.2.0 and 2.3.0 will support both **id** and
**ident**, but **ident** will be removed on the next version.
-
- The following example shows the changes that need to be applied to the payload to use
this endpoint:
- Original payload:
- ```json
- {
- "ident": "test_group",
- "title": "Test group",
- "help_text": "My test groupd",
- "tags": [
- {"ident": "test", "title": "Test Tag"}
- ]
- }
- ```
- Updated payload:
- ```json
- {
- "id": "test_group",
- "title": "Test group",
- "help_text": "My test groupd",
- "tags": [
- {"id": "test", "title": "Test Tag"}
- ]
- }
- ```
-
-
Show replies by date