<!-- 
RSS generated by JIRA (8.20.10#820010-sha1:ace47f9899e9ee25d7157d59aa17ab06aee30d3d) at Wed Feb 07 20:16: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>[NETCONF-996] OpenAPI: Fix invalid swagger schema</title>
                <link>https://jira.opendaylight.org/browse/NETCONF-996</link>
                <project id="10142" key="NETCONF">netconf</project>
                    <description>&lt;p&gt;In &lt;b&gt;&lt;tt&gt;DefinitionNames&lt;/tt&gt;&lt;/b&gt; we are trying to pick a number discriminator when we have the same parameters in path. Unfortunately, this logic produces invalid schemas.&lt;/p&gt;

&lt;p&gt;It means that we have &lt;tt&gt;pair-key1&lt;/tt&gt; in URL but &lt;tt&gt;pair-key&lt;/tt&gt; in parameters. The most probable reason is that logic is not taking into account that it has to be executed for each request separately.&lt;/p&gt;

&lt;p&gt;The error:&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;Semantic error at paths./rests/data/aaa-app-config:shiro-configuration/urls={pair-key1}.patch.parameters.0.name
Path parameter &quot;pair-key&quot; must have the corresponding {pair-key} segment in the &quot;/rests/data/aaa-app-config:shiro-configuration/urls={pair-key1}&quot; path
Jump to line 1589&lt;/pre&gt;
&lt;/div&gt;&lt;/div&gt;
&lt;p&gt;The corresponding fragment:&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; /rests/data/aaa-app-config:shiro-configuration/urls={pair-key1}:
    patch:
      description: The urls section of shiro.ini.
      summary: PATCH - aaa-app-config - urls
      tags:
        - controller aaa-app-config
      requestBody:
        content:
          application/yang-data+json:
            schema:
              $ref: &apos;#/components/schemas/aaa-app-config_shiro-configuration_config_urls_TOP&apos;
          application/yang-data+xml:
            schema:
              $ref: &apos;#/components/schemas/aaa-app-config_shiro-configuration_config_urls&apos;
        description: urls_config
      parameters:
        - name: pair-key
          description: The key.
          schema:
            type: string
          in: path
          required: true
        - name: pair-key1
          description: The key.
          schema:
            type: string
          in: path
          required: true
      responses:
        &apos;200&apos;:
          description: OK
        &apos;204&apos;:
          description: Updated&lt;/pre&gt;
&lt;/div&gt;&lt;/div&gt;
&lt;p&gt;If you scroll up in full schema you can see at line 1452:&lt;/p&gt;

&lt;p&gt;&lt;tt&gt;/rests/data/aaa-app-config:shiro-configuration/main={pair-key}:&lt;/tt&gt;&lt;/p&gt;

&lt;p&gt;The full schema can be seen when you insert content of &lt;a href=&quot;http://localhost:8181/apidoc/openapi3/apis/single&quot; class=&quot;external-link&quot; target=&quot;_blank&quot; rel=&quot;nofollow noopener&quot;&gt;http://localhost:8181/apidoc/openapi3/apis/single&lt;/a&gt; into &lt;a href=&quot;https://editor.swagger.io/&quot; class=&quot;external-link&quot; target=&quot;_blank&quot; rel=&quot;nofollow noopener&quot;&gt;https://editor.swagger.io/&lt;/a&gt;.&lt;/p&gt;</description>
                <environment></environment>
        <key id="36838">NETCONF-996</key>
            <summary>OpenAPI: Fix invalid swagger schema</summary>
                <type id="10104" iconUrl="https://jira.opendaylight.org/secure/viewavatar?size=xsmall&amp;avatarId=10303&amp;avatarType=issuetype">Bug</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="yaroslav.lastivka">Yaroslav Lastivka</assignee>
                                    <reporter username="ivanhrasko">Ivan Hrasko</reporter>
                        <labels>
                            <label>pt</label>
                    </labels>
                <created>Thu, 20 Apr 2023 10:16:13 +0000</created>
                <updated>Wed, 31 May 2023 08:39:10 +0000</updated>
                            <resolved>Wed, 31 May 2023 08:39:10 +0000</resolved>
                                                    <fixVersion>6.0.0</fixVersion>
                    <fixVersion>4.0.7</fixVersion>
                    <fixVersion>5.0.7</fixVersion>
                                    <component>restconf-openapi</component>
                        <due></due>
                            <votes>0</votes>
                                    <watches>2</watches>
                                                                                                                    <issuelinks>
                            <issuelinktype id="10000">
                    <name>Blocks</name>
                                                                <inwardlinks description="is blocked by">
                                        <issuelink>
            <issuekey id="36916">NETCONF-1022</issuekey>
        </issuelink>
                            </inwardlinks>
                                    </issuelinktype>
                    </issuelinks>
                <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|i044uv:</customfieldvalue>

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