Uploaded image for project: 'netconf'
  1. netconf
  2. NETCONF-1027

OpenAPI: Avoid null values in JSON

    XMLWordPrintable

Details

    • Improvement
    • Status: Resolved
    • Medium
    • Resolution: Done
    • None
    • 6.0.0
    • restconf-openapi

    Description

      The resulted JSON from Restconf openapi endpoints (for example http://localhost:8181/apidoc/openapi3/apis/mounts/1) contain null values for unset fields. This is not necessary and we can have more compact JSON instead.

      Try to avoid null values (ideally globally) by following: https://www.baeldung.com/jackson-ignore-null-fields.

      Attachments

        No reviews matched the request. Check your Options in the drop-down menu of this sections header.

        Activity

          People

            yaroslav.lastivka Yaroslav Lastivka
            ivanhrasko Ivan Hrasko
            Votes:
            0 Vote for this issue
            Watchers:
            1 Start watching this issue

            Dates

              Created:
              Updated:
              Resolved: