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

OpenApi: Eliminate TOP schemas

    XMLWordPrintable

Details

    • Task
    • Status: Resolved
    • Medium
    • Resolution: Done
    • None
    • 7.0.0
    • restconf-openapi

    Description

      Currently, we generate for each container element (container, list) schema and, additionally, schema with _TOP prefix. _TOP prefix is used for PUT (JSON), PATCH (JSON) and GET operations.

      Assuming that all operations are under path.

      We can change our logic in the following way:

      1. For each container create its path.
      2. For each container create its schema - only one.
      3. Link container's path with schema for PUT (JSON), PATCH (JSON) and GET operations.
      4. Link container's parent path with schema for POST, PUT (XML) and PATCH (XML) operations.
      5. Continue.

      Attachments

        Issue Links

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

          Activity

            People

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

              Dates

                Created:
                Updated:
                Resolved: