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

Anyxml list data are wrapped in "array-element"

XMLWordPrintable

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

      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.

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

              Created:
              Updated: