OpenApi: Fix parameter types for paths 21/108321/11
authorlubos-cicut <lubos.cicut@pantheon.tech>
Tue, 10 Oct 2023 18:37:19 +0000 (20:37 +0200)
committerIvan Hrasko <ivan.hrasko@pantheon.tech>
Tue, 24 Oct 2023 13:33:55 +0000 (13:33 +0000)
commitdd28415b7e9615f5f7e54dcc299c452d6a815cb9
tree826a3d385745950fc0eb6fa538e093e08e83410f
parent25aae45da8dc4d01a490950c178f4745993b6b1b
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>
restconf/restconf-openapi/src/main/java/org/opendaylight/restconf/openapi/impl/BaseYangOpenApiGenerator.java
restconf/restconf-openapi/src/test/java/org/opendaylight/restconf/openapi/impl/OpenApiGeneratorRFC8040Test.java
restconf/restconf-openapi/src/test/java/org/opendaylight/restconf/openapi/mountpoints/MountPointOpenApiTest.java
restconf/restconf-openapi/src/test/resources/yang/typed-params.yang [new file with mode: 0644]