-
Story
-
Resolution: Done
-
Medium
-
None
-
None
Data fragment parsing consist of two stages
- JSON string conversion into NormalizedNode object - performed by yang tools library
- NormalizedNode conversion to DataNode object - performed by DataNodeBuilder (CPS)
The DataNodeBuilder currently assumes the incoming data always describes single data node.
As result the single DataNode object is always created even if input data contains multiple entries
(see example below).
In order to support operations with list nodes containing multiple entries, the DataNodeBuilder
functionality require to be modified to successfully retrieve all the data nodes provided within
incoming JSON.
Example JSON: (references test-tree.yang model from cps-service module tests)
{ "branch": [ { "name": "one"}, { "name": "two"} ] }
A/C:
DataNodeBuilder can build a collection of DataNode objects