OpenApi: Fix parameter types for paths 53/108553/4
authorlubos-cicut <lubos.cicut@pantheon.tech>
Tue, 10 Oct 2023 18:37:19 +0000 (20:37 +0200)
committerIvan Hrasko <ivan.hrasko@pantheon.tech>
Tue, 31 Oct 2023 08:29:49 +0000 (08:29 +0000)
commit13f0f2436f2a16053d5e4e68e26f9f60fa2a575a
tree83bb82ab3e7dc6bc6d28a05b4a72d63f135eded0
parentd6292eec1b2ff2c6658b21129247c8f1ff7e0094
OpenApi: Fix parameter types for paths

Corrected the hard-coded "string" type for path parameters type to the
proper type. Created a test to verify that the Schema type is assigned
with the expected type.

JIRA: NETCONF-1168
Change-Id: I0c1ff3dd04044507840fe2c484145e8c5740776a
Signed-off-by: lubos-cicut <lubos.cicut@pantheon.tech>
Signed-off-by: Ivan Hrasko <ivan.hrasko@pantheon.tech>
(cherry picked from commit dd28415b7e9615f5f7e54dcc299c452d6a815cb9)
restconf/sal-rest-docgen/src/main/java/org/opendaylight/netconf/sal/rest/doc/impl/BaseYangSwaggerGenerator.java
restconf/sal-rest-docgen/src/test/java/org/opendaylight/netconf/sal/rest/doc/impl/ApiDocGeneratorRFC8040Test.java
restconf/sal-rest-docgen/src/test/java/org/opendaylight/netconf/sal/rest/doc/impl/MountPointSwaggerTest.java
restconf/sal-rest-docgen/src/test/resources/yang/typed-params.yang [new file with mode: 0644]