Bug 1761: Fixed missing module name prefix for augmentations. 43/11043/6
authorTony Tkacik <ttkacik@cisco.com>
Thu, 11 Sep 2014 11:53:45 +0000 (13:53 +0200)
committerRobert Varga <rovarga@cisco.com>
Fri, 12 Sep 2014 19:45:48 +0000 (21:45 +0200)
commit999ce186cee071f729878287fa1517a8cf1ac86e
treedffb50765442534e49842e5601d8f843c21a96be
parent93fb368fd623bc27e4d41c4845bb9fd8fb09e4e0
Bug 1761: Fixed missing module name prefix for augmentations.

Migration to more state tracking introduced regression
where module name prefix was left out for containers
and lists which were augmented, which was inconsistent
with case augmentations, which were serialized properly.

Draft draft-lhotka-netmod-yang-json-02 allows previous
behaviour (without module names for augmented items),
but that may cause changing textual representation
after conflicting augmentation is introduced,
so we opted to always report module name for top level
items of augmentation, which is also allowed from spec.

Change-Id: Icbb1b2aeed1a154a06e7f90f0dacc199a7df6bcc
Signed-off-by: Tony Tkacik <ttkacik@cisco.com>
Signed-off-by: Robert Varga <rovarga@cisco.com>
yang/yang-data-codec-gson/src/main/java/org/opendaylight/yangtools/yang/data/codec/gson/JSONNormalizedNodeStreamWriter.java
yang/yang-data-codec-gson/src/main/java/org/opendaylight/yangtools/yang/data/codec/gson/JSONStreamWriterContext.java
yang/yang-data-codec-gson/src/main/java/org/opendaylight/yangtools/yang/data/codec/gson/JSONStreamWriterListContext.java
yang/yang-data-codec-gson/src/main/java/org/opendaylight/yangtools/yang/data/codec/gson/JSONStreamWriterNamedObjectContext.java