Closed abierman closed 8 years ago
We will ask Lada and check the YANG-JSON draft. That is the normative text for this issue
I tend to agree with Rob. draft-ietf-netmod-yang-json defines [null]
as the encoding of leafs with empty type, and nothing else. So using empty objects is IMO a better indication that some suppressed contents are inside.
In fact, I think all occurences of [null] should be replaced with {}
This should not be changed because the JSON draft says an empty leaf is NULL
On Thu, Mar 10, 2016 at 3:27 AM, Martin Bjorklund notifications@github.com wrote:
Closed #54 https://github.com/netconf-wg/restconf/issues/54 via e9cfc09 https://github.com/netconf-wg/restconf/commit/e9cfc09af9a8fca054bce082557ac3eceb19ffb7 .
— Reply to this email directly or view it on GitHub https://github.com/netconf-wg/restconf/issues/54#event-584730064.
IMO, the yang-json draft gives you no guideline, because the terms leaf and empty are meant in the narrow sense, i.e. a leaf node and and empty type, as defined in YANG. What you have here are some containers whose contents are omitted. So I think you can choose whatever makes most sense.
From Robert Wilton:
OLD: The server might respond as follows:
NEW: The server might respond as follows: