<!-- 
RSS generated by JIRA (8.20.10#820010-sha1:ace47f9899e9ee25d7157d59aa17ab06aee30d3d) at Wed Feb 07 20:54:47 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>[YANGTOOLS-958] YANG parser does not complain about mandatory node in a default case</title>
                <link>https://jira.opendaylight.org/browse/YANGTOOLS-958</link>
                <project id="10188" key="YANGTOOLS">yangtools</project>
                    <description>&lt;p&gt;We are using version 2.0.11.&lt;/p&gt;

&lt;p&gt;The YANG parser does not complain when you put a mandatory node in a default case in a choice (see the attached model).   We saw this when we had a nested choice in a default case that was mandatory, but actually it is also the case if a default case contains directly a mandatory leaf.&lt;/p&gt;

&lt;p&gt;According to the RFC this is not allowed.  See section &lt;a href=&quot;https://tools.ietf.org/html/rfc7950#section-7.9.3&quot; class=&quot;external-link&quot; target=&quot;_blank&quot; rel=&quot;nofollow noopener&quot;&gt;https://tools.ietf.org/html/rfc7950#section-7.9.3&lt;/a&gt;&lt;/p&gt;

&lt;p&gt;pyang is giving an error on this:&lt;br/&gt;
example.yang:11: error: mandatory node in default case&lt;br/&gt;
example.yang:15: error: mandatory node in default case&lt;/p&gt;</description>
                <environment></environment>
        <key id="31466">YANGTOOLS-958</key>
            <summary>YANG parser does not complain about mandatory node in a default case</summary>
                <type id="10104" iconUrl="https://jira.opendaylight.org/secure/viewavatar?size=xsmall&amp;avatarId=10303&amp;avatarType=issuetype">Bug</type>
                                            <priority id="4" iconUrl="https://jira.opendaylight.org/images/icons/priorities/minor.svg">Low</priority>
                        <status id="1" iconUrl="https://jira.opendaylight.org/images/icons/statuses/open.png" description="The issue is open and ready for the assignee to start work on it.">Open</status>
                    <statusCategory id="2" key="new" colorName="blue-gray"/>
                                    <resolution id="-1">Unresolved</resolution>
                                        <assignee username="-1">Unassigned</assignee>
                                    <reporter username="verthezpw">Peter Verthez</reporter>
                        <labels>
                            <label>pick-next</label>
                            <label>pt</label>
                    </labels>
                <created>Wed, 27 Feb 2019 11:57:57 +0000</created>
                <updated>Tue, 13 Dec 2022 01:16:17 +0000</updated>
                                            <version>2.0.10</version>
                                                    <component>parser</component>
                        <due></due>
                            <votes>0</votes>
                                    <watches>1</watches>
                                                                                                                        <attachments>
                            <attachment id="15108" name="example.yang" size="546" author="verthezpw" created="Wed, 27 Feb 2019 11:57:55 +0000"/>
                    </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|i03mtb:</customfieldvalue>

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