<!-- 
RSS generated by JIRA (8.20.10#820010-sha1:ace47f9899e9ee25d7157d59aa17ab06aee30d3d) at Wed Feb 07 20:15:39 UTC 2024

It is possible to restrict the fields that are returned in this document by specifying the 'field' parameter in your request.
For example, to request only the issue key and summary append 'field=key&field=summary' to the URL of your request.
-->
<rss version="0.92" >
<channel>
    <title>OpenDaylight JIRA</title>
    <link>https://jira.opendaylight.org</link>
    <description>This file is an XML representation of an issue</description>
    <language>en-us</language>    <build-info>
        <version>8.20.10</version>
        <build-number>820010</build-number>
        <build-date>22-06-2022</build-date>
    </build-info>


<item>
            <title>[NETCONF-691] A question about empty container not showing</title>
                <link>https://jira.opendaylight.org/browse/NETCONF-691</link>
                <project id="10142" key="NETCONF">netconf</project>
                    <description>&lt;p&gt;When I use restconf in Sodium-SR1, I find one thing, if I create one container without set value to any child in it, It does not show up.&lt;/p&gt;

&lt;p&gt;For example, there is following yang structure:&lt;/p&gt;

&lt;p&gt;&#160;&lt;/p&gt;
&lt;div class=&quot;preformatted panel&quot; style=&quot;border-width: 1px;&quot;&gt;&lt;div class=&quot;preformattedContent panelContent&quot;&gt;
&lt;pre&gt;container A {

  leaf B {
    type string;
  }

&#160; container C {
    // .....
&#160; }
 &#160;container D {
    // .....
  }
}&lt;/pre&gt;
&lt;/div&gt;&lt;/div&gt;
&lt;p&gt;When I new A, set value to B, and just new C, D. And then query root node A, the results are as follows:&lt;/p&gt;
&lt;div class=&quot;preformatted panel&quot; style=&quot;border-width: 1px;&quot;&gt;&lt;div class=&quot;preformattedContent panelContent&quot;&gt;
&lt;pre&gt;&quot;A&quot;: {
  &quot;B&quot;: &quot;123456&quot;
}
&lt;/pre&gt;
&lt;/div&gt;&lt;/div&gt;
&lt;p&gt;&#160;&lt;/p&gt;

&lt;p&gt;C and D are not shown. So I just want to kown, can we display these empty containers that have been created?&lt;/p&gt;</description>
                <environment></environment>
        <key id="32681">NETCONF-691</key>
            <summary>A question about empty container not showing</summary>
                <type id="10101" iconUrl="https://jira.opendaylight.org/secure/viewavatar?size=xsmall&amp;avatarId=10318&amp;avatarType=issuetype">Task</type>
                                            <priority id="3" iconUrl="https://jira.opendaylight.org/images/icons/priorities/major.svg">Medium</priority>
                        <status id="5" iconUrl="https://jira.opendaylight.org/images/icons/statuses/resolved.png" description="A resolution has been taken, and it is awaiting verification by reporter. From here issues are either reopened, or are closed.">Resolved</status>
                    <statusCategory id="3" key="done" colorName="green"/>
                                    <resolution id="10001">Won&apos;t Do</resolution>
                                        <assignee username="jluhrsen">Jamo Luhrsen</assignee>
                                    <reporter username="wsx25289">wang senxiao</reporter>
                        <labels>
                    </labels>
                <created>Tue, 26 May 2020 05:58:13 +0000</created>
                <updated>Mon, 3 Aug 2020 09:46:41 +0000</updated>
                            <resolved>Mon, 3 Aug 2020 09:46:41 +0000</resolved>
                                                                        <due></due>
                            <votes>0</votes>
                                    <watches>3</watches>
                                                                                                                <comments>
                            <comment id="68143" author="wsx25289" created="Tue, 26 May 2020 06:04:22 +0000"  >&lt;p&gt;&lt;a href=&quot;https://jira.opendaylight.org/secure/ViewProfile.jspa?name=jluhrsen&quot; class=&quot;user-hover&quot; rel=&quot;jluhrsen&quot;&gt;jluhrsen&lt;/a&gt;&lt;/p&gt;</comment>
                            <comment id="68148" author="jluhrsen" created="Wed, 27 May 2020 19:37:59 +0000"  >&lt;p&gt;I am not sure the root cause of this, but wondering if it could be related to this work in&lt;br/&gt;
&lt;a href=&quot;https://jira.opendaylight.org/browse/NETCONF-660&quot; title=&quot;RFC 8040 query fails to return field if subfields specified for another element&quot; class=&quot;issue-link&quot; data-issue-key=&quot;NETCONF-660&quot;&gt;&lt;del&gt;NETCONF-660&lt;/del&gt;&lt;/a&gt;? &lt;a href=&quot;https://jira.opendaylight.org/secure/ViewProfile.jspa?name=mjethanandani&quot; class=&quot;user-hover&quot; rel=&quot;mjethanandani&quot;&gt;mjethanandani&lt;/a&gt;, do you think it&apos;s related?&lt;/p&gt;</comment>
                            <comment id="68149" author="mjethanandani" created="Wed, 27 May 2020 20:27:56 +0000"  >&lt;p&gt;No. I do not think the two issues are related.&lt;/p&gt;

&lt;p&gt;RFC 7950 in Section 7.5.1 says the following for non-presence containers. Container C &amp;amp; D are non-presence containers, so they will not be printed. If the desire is to print them regardless, then they should be marked with the &apos;presence&apos; keyword.&lt;/p&gt;

&lt;p&gt;&lt;em&gt;&quot;In particular, the presence of the&lt;/em&gt;&lt;br/&gt;
 &lt;em&gt;container node with no child nodes is semantically equivalent to the&lt;/em&gt;&lt;br/&gt;
 &lt;em&gt;absence of the container node.&quot;&lt;/em&gt;&lt;/p&gt;</comment>
                            <comment id="68150" author="jluhrsen" created="Wed, 27 May 2020 21:07:01 +0000"  >&lt;p&gt;Thanks &lt;a href=&quot;https://jira.opendaylight.org/secure/ViewProfile.jspa?name=mjethanandani&quot; class=&quot;user-hover&quot; rel=&quot;mjethanandani&quot;&gt;mjethanandani&lt;/a&gt;&lt;/p&gt;

&lt;p&gt;&lt;a href=&quot;https://jira.opendaylight.org/secure/ViewProfile.jspa?name=wsx25289&quot; class=&quot;user-hover&quot; rel=&quot;wsx25289&quot;&gt;wsx25289&lt;/a&gt;, feel free to reply and/or close this ticket if this is makes sense to you.&lt;/p&gt;</comment>
                            <comment id="68508" author="rovarga" created="Mon, 3 Aug 2020 09:46:41 +0000"  >&lt;p&gt;As explained, an empty non-presence container has no semantic meaning and hence we automatically remove them.&lt;/p&gt;</comment>
                    </comments>
                    <attachments>
                    </attachments>
                <subtasks>
                    </subtasks>
                <customfields>
                                                                            <customfield id="customfield_11400" key="com.atlassian.jira.plugins.jira-development-integration-plugin:devsummary">
                        <customfieldname>Development</customfieldname>
                        <customfieldvalues>
                            
                        </customfieldvalues>
                    </customfield>
                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                <customfield id="customfield_10000" key="com.pyxis.greenhopper.jira:gh-lexo-rank">
                        <customfieldname>Rank</customfieldname>
                        <customfieldvalues>
                            <customfieldvalue>0|i03skf:</customfieldvalue>

                        </customfieldvalues>
                    </customfield>
                                                                                                                                                                                                            </customfields>
    </item>
</channel>
</rss>