<!-- 
RSS generated by JIRA (8.20.10#820010-sha1:ace47f9899e9ee25d7157d59aa17ab06aee30d3d) at Wed Feb 07 19:53:25 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>[CONTROLLER-596] Swagger UI is failing to load</title>
                <link>https://jira.opendaylight.org/browse/CONTROLLER-596</link>
                <project id="10113" key="CONTROLLER">controller</project>
                    <description>&lt;p&gt;The swagger UI is no longer rendering any of the possible end points and if you look at the browser developer tools you see an exception getting thrown from the browser java script.&lt;/p&gt;</description>
                <environment>&lt;p&gt;Operating System: Mac OS&lt;br/&gt;
Platform: PC&lt;/p&gt;</environment>
        <key id="25150">CONTROLLER-596</key>
            <summary>Swagger UI is failing to load</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="10000">Done</resolution>
                                        <assignee username="devin.avery@brocade.com">Devin Avery</assignee>
                                    <reporter username="devin.avery@brocade.com">Devin Avery</reporter>
                        <labels>
                    </labels>
                <created>Thu, 3 Jul 2014 09:51:08 +0000</created>
                <updated>Mon, 7 Jul 2014 08:04:54 +0000</updated>
                            <resolved>Mon, 7 Jul 2014 08:04:54 +0000</resolved>
                                    <version>Helium</version>
                                                    <component>restconf</component>
                        <due></due>
                            <votes>0</votes>
                                    <watches>3</watches>
                                                                                                                <comments>
                            <comment id="48625" author="devin.avery@brocade.com" created="Thu, 3 Jul 2014 09:55:40 +0000"  >&lt;p&gt;The cause:&lt;/p&gt;

&lt;p&gt;I found the cause of this problem. The backend swagger documentation code that generated the JSON model for the yang file made the assumption that you can have two &quot;types&quot; for a property. However swagger is choking on that.&lt;/p&gt;

&lt;p&gt;It appears that in swagger we were generating a list of types for the &quot;Unions&quot; that were defined in yang. We didn&apos;t actually have any unions in exposed models until &lt;a href=&quot;https://jira.opendaylight.org/browse/OPNFLWPLUG-121&quot; title=&quot;Reserve ports should be logical ports&quot; class=&quot;issue-link&quot; data-issue-key=&quot;OPNFLWPLUG-121&quot;&gt;&lt;del&gt;OPNFLWPLUG-121&lt;/del&gt;&lt;/a&gt; introduce a union in the port types yang file for port-number.&lt;/p&gt;

&lt;p&gt;The Fix:&lt;/p&gt;

&lt;p&gt;For union types, instead of passing back an array of types, we just append the multiples types together into a string with &apos;or&apos;. So:&lt;/p&gt;

&lt;p&gt; leaf port-number {&lt;br/&gt;
            type union &lt;/p&gt;
{
                type uint32;
                type string;
            }
&lt;p&gt;        }&lt;/p&gt;

&lt;p&gt;becomes &quot;integer or string&quot; instead of &quot;&lt;/p&gt;
{ &apos;integer&apos;, &apos;string&apos; }
&lt;p&gt;&quot;.&lt;/p&gt;

&lt;p&gt;Swagger will now display that without any problem.&lt;/p&gt;</comment>
                            <comment id="48626" author="devin.avery@brocade.com" created="Thu, 3 Jul 2014 10:05:29 +0000"  >&lt;p&gt;&lt;a href=&quot;https://git.opendaylight.org/gerrit/8604&quot; class=&quot;external-link&quot; target=&quot;_blank&quot; rel=&quot;nofollow noopener&quot;&gt;https://git.opendaylight.org/gerrit/8604&lt;/a&gt;&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_10208" key="com.atlassian.jira.plugin.system.customfieldtypes:textfield">
                        <customfieldname>External issue ID</customfieldname>
                        <customfieldvalues>
                            <customfieldvalue>1290</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=1290]]></customfieldvalue>

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

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