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

JSON reader: Eliminate additional logic for augmented data

XMLWordPrintable

    • Icon: Task Task
    • Resolution: Unresolved
    • Icon: Medium Medium
    • None
    • None
    • None

      JsonNormalizedNodeBodyReader/JsonPatchBodyReader (as introduced in https://jira.opendaylight.org/browse/NETCONF-747) are using additional logic for Augmentation and Choice nodes.

      while (result instanceof AugmentationNode || result instanceof ChoiceNode) { 

      Interesting is that XmlNormalizedNodeBodyReader/XmlPatchBodyReader do not need this additional logic.

      Create tests in Netconf/Yangtools to verify JsonParserStream/XmlParserStream behaviour and create bug report to Yangtools project if necessary.

            ivanhrasko Ivan Hrasko
            ivanhrasko Ivan Hrasko
            Votes:
            0 Vote for this issue
            Watchers:
            1 Start watching this issue

              Created:
              Updated: