OpenApi: Fix 'min-elements' for XML Leaf-List 94/108394/7
authorlubos-cicut <lubos.cicut@pantheon.tech>
Fri, 13 Oct 2023 12:21:56 +0000 (14:21 +0200)
committerIvan Hrasko <ivan.hrasko@pantheon.tech>
Tue, 24 Oct 2023 06:11:13 +0000 (06:11 +0000)
commit1c1ab4ebb81ce9a44128b4a02629b7c06d13bc2e
tree0a971a82547c424bd6da3240d6d25bc35728371f
parent3e64cdb68fe925d0180f106946b4d9351499d5d3
OpenApi: Fix 'min-elements' for XML Leaf-List

Manually set examples with the expected number of elements in the
leaf-list, rather than relying on OpenAPI to duplicate them for us.

JIRA: NETCONF-1171
Change-Id: I883c92a396f88c610067861dc1e31bdd8dfcceb3
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/DefinitionGenerator.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