<!-- 
RSS generated by JIRA (8.20.10#820010-sha1:ace47f9899e9ee25d7157d59aa17ab06aee30d3d) at Wed Feb 07 20:52:41 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-249] Yangtools Mangling REST names</title>
                <link>https://jira.opendaylight.org/browse/YANGTOOLS-249</link>
                <project id="10188" key="YANGTOOLS">yangtools</project>
                    <description>&lt;p&gt;I have the following model&lt;/p&gt;

&lt;p&gt;    container CSEBase {&lt;br/&gt;
        description &quot;Resource at the root of the tree&quot;;&lt;br/&gt;
        container CSEBaseAttributes {&lt;br/&gt;
            description &quot;all attributes of CSEBase are in this container&quot;;&lt;br/&gt;
            uses commonAttributesGroup;&lt;br/&gt;
            leaf cseID &lt;/p&gt;
{
                 type string;
                 description &quot;The globally unique CSE identifier.&quot;;
                 mandatory true;
                 }



&lt;p&gt;I noticed that the container name &quot;CSEBaseAttributes&quot; was changed to &quot;Attributes&quot;.  I was trying a JSON PUT for quite some time and RESTconf API explorer showed the actual URI&lt;/p&gt;

&lt;p&gt;{&lt;br/&gt;
  &quot;CSEBase&quot;: {&lt;br/&gt;
    &quot;Attributes&quot;: &lt;/p&gt;
{
        &quot;cseID&quot;: &quot;CSE-Id-Reinaldo&quot;
    }
&lt;p&gt;  }&lt;br/&gt;
} &lt;/p&gt;

&lt;p&gt;Without a tool like RESTconf API explorer I would never know that this mangling happened and to what name it was changed exactly. I checked RESTconf draft and the name CSEBaseAttributes is allowed. Maybe having the name prefix as the module is the problem.&lt;/p&gt;</description>
                <environment>&lt;p&gt;Operating System: Mac OS&lt;br/&gt;
Platform: PC&lt;/p&gt;</environment>
        <key id="22669">YANGTOOLS-249</key>
            <summary>Yangtools Mangling REST names</summary>
                <type id="10104" iconUrl="https://jira.opendaylight.org/secure/viewavatar?size=xsmall&amp;avatarId=10303&amp;avatarType=issuetype">Bug</type>
                                                <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="10003">Cannot Reproduce</resolution>
                                        <assignee username="-1">Unassigned</assignee>
                                    <reporter username="repenno">Reinaldo Penno</reporter>
                        <labels>
                    </labels>
                <created>Tue, 5 Aug 2014 00:54:35 +0000</created>
                <updated>Sun, 10 Apr 2022 18:35:13 +0000</updated>
                            <resolved>Wed, 6 Aug 2014 09:21:03 +0000</resolved>
                                                                        <due></due>
                            <votes>0</votes>
                                    <watches>2</watches>
                                                                                                                <comments>
                            <comment id="42924" author="lborak@cisco.com" created="Tue, 5 Aug 2014 14:33:49 +0000"  >&lt;p&gt;I tested behavior of changing container name, with model included as attachment and all works fine. Tested with current controller in debug mode, from postman and also with RESTConf API Explorer. All operations works correctly and containers name stayed the same.&lt;/p&gt;</comment>
                            <comment id="42927" author="lborak@cisco.com" created="Tue, 5 Aug 2014 14:36:21 +0000"  >&lt;p&gt;Attachment mod-test-cont.yang has been added with description: test yang file&lt;/p&gt;</comment>
                            <comment id="42925" author="rapenno@gmail.com" created="Tue, 5 Aug 2014 15:19:27 +0000"  >&lt;p&gt;I&apos;m attaching the Yang model that caused the problem.&lt;/p&gt;</comment>
                            <comment id="42928" author="rapenno@gmail.com" created="Tue, 5 Aug 2014 15:19:27 +0000"  >&lt;p&gt;Attachment oneM2Mv2.yang has been added with description: Yang model that caused the problem&lt;/p&gt;</comment>
                            <comment id="42926" author="lborak@cisco.com" created="Tue, 5 Aug 2014 18:56:01 +0000"  >&lt;p&gt;Your included yang file is not valid. &lt;/p&gt;

&lt;p&gt;At first sight I found out some problems:&lt;/p&gt;

&lt;p&gt;1) number of left and right braces is not same (line 332)&lt;br/&gt;
2) leaf stateTag cannot contains both mandatory and default statement (line 117)&lt;br/&gt;
3) incorrect identifier for type (line 298)&lt;br/&gt;
4) leaf maxInstanceAge decalred twice (line 234)&lt;br/&gt;
5) leaf currentNrOfInstances declared twice &lt;br/&gt;
6) leaf currentByteSize declared twice &lt;br/&gt;
7) incorrect leafref target&lt;br/&gt;
   /resourceSubscription/resourceSubscriptionAttributes/attributes/resourceID&lt;/p&gt;

&lt;p&gt;and more. &lt;/p&gt;

&lt;p&gt;Please use valid yang file and try to test again.&lt;/p&gt;</comment>
                    </comments>
                    <attachments>
                            <attachment id="12982" name="mod-test-cont.yang" size="599" author="lborak@cisco.com" created="Tue, 5 Aug 2014 14:36:21 +0000"/>
                            <attachment id="12983" name="oneM2Mv2.yang" size="12506" author="repenno" created="Tue, 5 Aug 2014 15:19:27 +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_10208" key="com.atlassian.jira.plugin.system.customfieldtypes:textfield">
                        <customfieldname>External issue ID</customfieldname>
                        <customfieldvalues>
                            <customfieldvalue>1483</customfieldvalue>

                        </customfieldvalues>
                    </customfield>
                                                                <customfield id="customfield_10201" key="com.atlassian.jira.plugin.system.customfieldtypes:url">
                        <customfieldname>External issue URL</customfieldname>
                        <customfieldvalues>
                            <customfieldvalue><![CDATA[https://bugs.opendaylight.org/show_bug.cgi?id=1483]]></customfieldvalue>

                        </customfieldvalues>
                    </customfield>
                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                <customfield id="customfield_10000" key="com.pyxis.greenhopper.jira:gh-lexo-rank">
                        <customfieldname>Rank</customfieldname>
                        <customfieldvalues>
                            <customfieldvalue>0|i02627:</customfieldvalue>

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