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

OpenAPI: Use Java Schema object instead of JsonNode

    XMLWordPrintable

Details

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

    Description

      Create new Java Schema object according to Schema Object chapter at https://swagger.io/specification/. Then change Components object as follows:

      private ObjectNode schemas;

      to:

      private Map<String, Schema> schemas;

      and resolve all consequences in the codebase.

      As a result we can remove JsonUtil#addFields method which is addressed by another issue.

      Attachments

        Issue Links

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

          Activity

            People

              ojo Oleksandr Zharov
              ivanhrasko Ivan Hrasko
              Votes:
              0 Vote for this issue
              Watchers:
              1 Start watching this issue

              Dates

                Created:
                Updated:
                Resolved: