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

OpenApi: Wrong XML GET example

    XMLWordPrintable

Details

    Description

      In OpenApi UI we see, for path:
      http://localhost:8181/rests/data/network-topology:network-topology/topology=topology-netconf/node=17830-sim-device/yang-ext:mount/toaster:toaster
      the following example in XML:

      <?xml version="1.0" encoding="UTF-8"?>
      <toaster_toaster_TOP>
      	<toaster xmlns="http://netconfcentral.org/ns/toaster">
      		<toasterManufacturer>Some toasterManufacturer</toasterManufacturer>
      		<toasterModelNumber>Some toasterModelNumber</toasterModelNumber>
      		<toasterStatus>up</toasterStatus>
      		<darknessFactor>1000</darknessFactor>
      	</toaster>
      </toaster_toaster_TOP> 

      But when request is invoked we see:

      <toaster xmlns="http://netconfcentral.org/ns/toaster">
        <toasterStatus>up</toasterStatus>
        <darknessFactor>1000</darknessFactor>
        <toasterModelNumber>25</toasterModelNumber>
        <toasterManufacturer>Microsoft</toasterManufacturer>
      </toaster> 

      Most probably we have to NOT use _TOP schema for GET XML example.

      Attachments

        Issue Links

          # Subject Branch Project Status CR V

          Activity

            People

              simon0pt Šimon Ukuš
              ivanhrasko Ivan Hrasko
              Votes:
              0 Vote for this issue
              Watchers:
              1 Start watching this issue

              Dates

                Created:
                Updated:
                Resolved: