-
Task
-
Resolution: Fixed
-
L3 - Default
-
None
-
None
Scenario:
- generated a C# client of the OpenAPI documentation
- perform fetch and lock operation
Expectation:
Successful operation
Observed:
An exception is thrown
Further details from CAM-11749:
When i do a FetchAndLock, i get an exception Deserializing.
I debugged and the reason is the DTO LockedExternalTaskDto . This class consists of strings which by default can be null or empty string.
However, there is a retries property which the schema says, its an integer. And since the retry is by default null in camunda if not configured,
the deserializer give an exception casting a null json value to an integer. Either the retries needs to also be changed to string or the schema needs to define that its nullable or optional or something to that the generated code will make a nullable integer.