Allow list elements to be interleaved 75/90175/9
authorJamo Luhrsen <jluhrsen@gmail.com>
Sun, 31 May 2020 05:29:52 +0000 (22:29 -0700)
committerRobert Varga <robert.varga@pantheon.tech>
Tue, 9 Jun 2020 13:08:26 +0000 (15:08 +0200)
commiteb4617a9867325921e0fd9660898c3fc4dfc8d11
treeb6426e558cd4e8af59482decdf859b2b060b04b0
parentf04c7c25db26b76c53a93a787838a458778e8bf6
Allow list elements to be interleaved

If a list node A is parsed then list node B and another list with A
is given after, it fails to parse as a duplicate.

Skip checking for duplicate nodes if the node being parsed is found
to correspond to ListEffectiveStatement.

JIRA: YANGTOOLS-1107
Change-Id: I4dae263a1e41444db7a6cce6eb958f397c801070
Signed-off-by: Jamo Luhrsen <jluhrsen@gmail.com>
Signed-off-by: Robert Varga <robert.varga@pantheon.tech>
yang/yang-data-codec-xml/src/main/java/org/opendaylight/yangtools/yang/data/codec/xml/XmlParserStream.java
yang/yang-data-codec-xml/src/test/java/org/opendaylight/yangtools/yang/data/codec/xml/XmlToNormalizedNodesTest.java
yang/yang-data-codec-xml/src/test/java/org/opendaylight/yangtools/yang/data/codec/xml/YT1107Test.java [new file with mode: 0644]
yang/yang-data-codec-xml/src/test/resources/yt1107/yt1107.xml [new file with mode: 0644]
yang/yang-data-codec-xml/src/test/resources/yt1107/yt1107.yang [new file with mode: 0644]
yang/yang-data-util/src/main/java/org/opendaylight/yangtools/yang/data/util/ChoiceNodeDataWithSchema.java
yang/yang-data-util/src/main/java/org/opendaylight/yangtools/yang/data/util/CompositeNodeDataWithSchema.java
yang/yang-data-util/src/main/java/org/opendaylight/yangtools/yang/data/util/DuplicateChildNodeRejectedException.java [new file with mode: 0644]