<!-- 
RSS generated by JIRA (8.20.10#820010-sha1:ace47f9899e9ee25d7157d59aa17ab06aee30d3d) at Wed Feb 07 20:16:44 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-1124] OpenApi: Improve union type processing</title>
                <link>https://jira.opendaylight.org/browse/NETCONF-1124</link>
                <project id="10142" key="NETCONF">netconf</project>
                    <description>&lt;p&gt;Instead of introducing cumbersome logic for union processing, process its default type or choose first one.&lt;/p&gt;</description>
                <environment></environment>
        <key id="37183">NETCONF-1124</key>
            <summary>OpenApi: Improve union type processing</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="10000">Done</resolution>
                                        <assignee username="matej.sramcik">Matej &#352;ram&#269;&#237;k</assignee>
                                    <reporter username="ivanhrasko">Ivan Hrasko</reporter>
                        <labels>
                            <label>pt</label>
                    </labels>
                <created>Tue, 8 Aug 2023 09:06:58 +0000</created>
                <updated>Tue, 15 Aug 2023 14:09:16 +0000</updated>
                            <resolved>Tue, 15 Aug 2023 14:09:16 +0000</resolved>
                                                    <fixVersion>7.0.0</fixVersion>
                                    <component>restconf-openapi</component>
                        <due></due>
                            <votes>0</votes>
                                    <watches>1</watches>
                                                                                                                <comments>
                            <comment id="72444" author="ivanhrasko" created="Tue, 15 Aug 2023 07:43:25 +0000"  >&lt;p&gt;Current logic present in &lt;b&gt;DefinitionGenerator#processUnionType&lt;/b&gt; has no clue about the type of default value anyway.&lt;/p&gt;

&lt;p&gt;What is done there is:&lt;/p&gt;
&lt;ul&gt;
	&lt;li&gt;check for string, boolean or number type in a cycle&lt;/li&gt;
	&lt;li&gt;as a consequence we can have as a result string, boolean and number at the same time&lt;/li&gt;
	&lt;li&gt;what is correct because that the nature of union&lt;/li&gt;
	&lt;li&gt;then we are trying to cast &lt;b&gt;default&lt;/b&gt; value to some type preferring string - what is not correct&lt;/li&gt;
&lt;/ul&gt;


&lt;p&gt;I propose to delete &lt;b&gt;DefinitionGenerator#processUnionType&lt;/b&gt;, use first member type for generating example and omitting default value at all.&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|i0466v:</customfieldvalue>

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