clicon / clixon

YANG-based toolchain including NETCONF and RESTCONF interfaces and an interactive CLI
http://www.clicon.org/
Other
215 stars 72 forks source link

restconf GET json response does not encode top level node with namespace as per rfc #303

Closed DeekshaBhandary closed 2 years ago

DeekshaBhandary commented 2 years ago
curl -i --request GET http://localhost:8040/restconf/data --header 'Content-Type: application/yang-data+json'
HTTP/1.1 200 OK
Cache-Control: no-cache
Content-Type: application/yang-data+json
Status: 200 OK
Date: Wed, 16 Feb 2022 10:07:31 GMT
Transfer-Encoding: chunked

{
  "data": {              <---------------- namespace missing
    "rtbrick-config:system": {
      "load-last-config": "true"
    }
olofhagsand commented 2 years ago

Patch submitted. Please verify.

DeekshaBhandary commented 2 years ago

Issue is fixed