Details
-
Bug
-
Status: Resolved
-
Medium
-
Resolution: Done
-
None
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
- blocks
-
NETCONF-1057 OpenApi: Eliminate TOP schemas
-
- Resolved
-
| # | Subject | Branch | Project | Status | CR | V |
|---|---|---|---|---|---|---|
| 106581,3 | Change schema for GET XML example | master | netconf | Status: MERGED | +2 | +1 |
| 106651,5 | Change schema for GET XML example | 4.0.x | netconf | Status: MERGED | +2 | +1 |
| 106652,5 | Change schema for GET XML example | 5.0.x | netconf | Status: MERGED | +2 | +1 |
| 106762,11 | Cherry-pick unit test into 5.0.x | 5.0.x | netconf | Status: MERGED | +2 | +1 |
| 106766,5 | Cherry-pick unit test into 4.0.x | 4.0.x | netconf | Status: MERGED | +2 | +1 |