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

OpenApi: Eliminate TOP schemas

XMLWordPrintable

    • Icon: Task Task
    • Resolution: Done
    • Icon: Medium Medium
    • 7.0.0
    • None
    • restconf-openapi

      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.

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

              Created:
              Updated:
              Resolved: