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

OpenAPI: Avoid null values in JSON

XMLWordPrintable

    • Icon: Improvement Improvement
    • Resolution: Done
    • Icon: Medium Medium
    • 6.0.0
    • None
    • restconf-openapi

      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.

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

              Created:
              Updated:
              Resolved: