Uploaded image for project: 'camunda BPM'
  1. camunda BPM
  2. CAM-13802

Sorting property for OpenApi query methods is not nullable

    XMLWordPrintable

Details

    • Bug Report
    • Resolution: Fixed
    • L3 - Default
    • 7.16.0, 7.16.0-alpha5
    • 7.15.4
    • None
    • None

    Description

      The sorting array that is used in many QueryDtos is not nullable in most cases.

      This might make trouble when users want to use generated clients because that field is not nullable, so the user might need to supply an empty array each time (depending on the client generation tool, there does not seem to be a problem with the generated Java client).

      However, usually all our properties in these query DTOs are nullable to prevent this. Sorting not being nullable could suggest to the user that they need to provide a sorting value, which is not actually the case, as sorting is optional.  

      Refactoring this would touch at least 18 ftl files based on a quick count. 

      mgm-controller-panel

        This is the controller panel for Smart Panels app

        Attachments

          Issue Links

            Activity

              People

                anton.weltzien Anton von Weltzien
                anton.weltzien Anton von Weltzien
                Anton von Weltzien Anton von Weltzien
                Miklas Boskamp Miklas Boskamp
                Votes:
                0 Vote for this issue
                Watchers:
                1 Start watching this issue

                Dates

                  Created:
                  Updated:
                  Resolved:

                  Salesforce