Article - CS418253
Swagger API "TrackerConfiguration" definition does not fit the values returned as response - "Could not resolve type id 'SINGLE' as a subtype of 'api.model.BaseTrackerFieldPermission' " on Codebeamer
Modified: 02-Oct-2024
Applies To
- Codebeamer 2.1.0.0 to 2.1.0.2
- Codebeamer 2.0 to 2.0.0.5
- Codebeamer 2.2 to 2.2.0.0
Description
- Swagger API description for endpoint TrackerConfiguration does not match the values that Codebeamer returns as a response:
- This means with a generated API client it’s not possible to parse the JSON response and create the related objects. (e.g. for Java)
- In the Swagger description, the term “SingleFieldPermission” instead of “SINGLE” is used, hence Java returns:
-
Could not resolve type id 'SINGLE' as a subtype of 'api.model.BaseTrackerFieldPermission': unknown type ids = [BaseTrackerFieldPermission, PerStatusFieldPermission] at [Source: ... api.model.TrackerConfiguration["fields"]->java.util.ArrayList[0]]
-
- All other field permission types are affected as well:
- Codebeamer returns “PER_STATUS” instead of “PerStatusFieldPermission”:
- Same issue with the tracker field "CHOICE OPTIONS"
- In the Swagger description, the term “SingleFieldPermission” instead of “SINGLE” is used, hence Java returns:
This is a printer-friendly version of Article 418253 and may be out of date. For the latest version click CS418253