Uploaded image for project: 'Apache YuniKorn'
  1. Apache YuniKorn
  2. YUNIKORN-1857

[UMBRELLA] use "omitempty" in json REST object definition

    XMLWordPrintableJSON

Details

    • Task
    • Status: Closed
    • Major
    • Resolution: Fixed
    • None
    • 1.4.0
    • core - common, webapp
    • None

    Description

      None of the json definitions (DAO) use the option omitempty. Adding this allows removing on default values (like: 0, false, nil slices, maps and pointers)

      There is an impact on the code: the webapp needs to be able to handle missing entries and default them correctly.

      It also requires documentation updates as we currently can show empty values in the output.

      Third part is to extend this all the way into the k8shim cache that creates the cache dumps.

      Attachments

        Issue Links

          There are no Sub-Tasks for this issue.

          Activity

            People

              yangpoan PoAn Yang
              wilfreds Wilfred Spiegelenburg
              Votes:
              0 Vote for this issue
              Watchers:
              1 Start watching this issue

              Dates

                Created:
                Updated:
                Resolved: