Fix docgen failure on multi-level choice definition 75/102875/1
authorRuslan Kashapov <ruslan.kashapov@pantheon.tech>
Wed, 26 Oct 2022 07:38:35 +0000 (10:38 +0300)
committerRuslan Kashapov <ruslan.kashapov@pantheon.tech>
Wed, 26 Oct 2022 07:41:29 +0000 (10:41 +0300)
commit402b85932413b91a7dd16efce6d566a580f1e1eb
treebec3ad9b225810186df1ef6e5d14a5c6511a1c1a
parent793a36c1a5734db61234ef884995157d0e8259cf
Fix docgen failure on multi-level choice definition

+ minor refactoring: duplicate code replaced with recursive function

JIRA: NETCONF-883
Change-Id: Ie577f930fe7fc104bc92a93286a2788b93c04ac6
Signed-off-by: Ruslan Kashapov <ruslan.kashapov@pantheon.tech>
restconf/sal-rest-docgen/src/main/java/org/opendaylight/netconf/sal/rest/doc/impl/DefinitionGenerator.java
restconf/sal-rest-docgen/src/test/resources/yang/toaster.yang