OpenAPI client [C#]: Exception on fetch and lock

XMLWordPrintable

    • Type: Task
    • Resolution: Fixed
    • Priority: L3 - Default
    • 7.13.0, 7.13.0-alpha4
    • Affects Version/s: None
    • Component/s: 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.

            Assignee:
            Nikola Koevski
            Reporter:
            Yana Vasileva
            Votes:
            0 Vote for this issue
            Watchers:
            1 Start watching this issue

              Created:
              Updated:
              Resolved: