Eliminate createUniquePathParamName method 02/106402/3
authorYaroslav Lastivka <[email protected]>
Wed, 7 Jun 2023 13:00:57 +0000 (16:00 +0300)
committerIvan Hrasko <[email protected]>
Mon, 19 Jun 2023 06:55:48 +0000 (08:55 +0200)
commitb0fc8afc76ed43f8c08e6af4ddd19069a567861f
treeda5bc072b802fd78d1469e80150863b9fdb6f55c
parentd1b945c16807cce805880574dc35141ebb5568a6
Eliminate createUniquePathParamName method

The method 'createUniquePathParamName' has been eliminated.

Instead, use a new logic using a variable named 'discriminator'.
This variable increments on each occurrence of parameter name.

JIRA: NETCONF-1047
Change-Id: I512bed32f27e4eb4ad51afc6e90fd484793cb2fb
Signed-off-by: Yaroslav Lastivka <[email protected]>
Signed-off-by: Ivan Hrasko <[email protected]>
restconf/restconf-openapi/src/main/java/org/opendaylight/restconf/openapi/impl/BaseYangOpenApiGenerator.java