Uploaded image for project: 'yangtools'
  1. yangtools
  2. YANGTOOLS-1003

Anyxml list data are wrapped in "array-element"

    XMLWordPrintable

Details

    • Bug
    • Status: Confirmed
    • Medium
    • Resolution: Unresolved
    • 2.0.12, 2.1.10, 3.0.2, 4.0.8
    • None
    • codecs
    • None

    Description

      Given rpc definition:

      rpc some-action {
        input {
          anyxml data;
        }
      }
      

      And data passed into restconf:

      {
        "input" : {
          "data" : [
            { "key" : "value" }
          ]
        }
      }
       
      

      results in following json element received from gson codec:

      "data" : {
        "array-element" : { "key" : " value" }
      }
      

       

      This breaks how jsonrpc digests anyxml data from restconf.

      I can't find reference to this behavior in RFC7951, so I think this is a bug.

      Attachments

        Issue Links

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

          Activity

            People

              Unassigned Unassigned
              rkosegi Richard Kosegi
              Votes:
              0 Vote for this issue
              Watchers:
              2 Start watching this issue

              Dates

                Created:
                Updated: