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

OpenAPI: Use Java Schema object instead of JsonNode

XMLWordPrintable

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

      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.

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

              Created:
              Updated:
              Resolved: