OpenApi create required operational data 94/106894/15
authorPeter Suna <peter.suna@pantheon.tech>
Thu, 13 Jul 2023 13:23:05 +0000 (15:23 +0200)
committerIvan Hrasko <ivan.hrasko@pantheon.tech>
Tue, 22 Aug 2023 11:09:01 +0000 (13:09 +0200)
commit0f229b64bace5fd55e0560f9501477b5dc26a58a
tree7667372a13ffb17ae1dfdf680cc596ea74cdba71
parentc0fac154bdff28d9505b56397d14e6fd6e400745
OpenApi create required operational data

Create only required operational data to provide example
for operational GET request.
This removed duplicity with configurational and operational nodes
in OpenApi schemas by creating only operational container and lists.

For container and lists are created specific GET request only for
operational data. This patch solves this by creating only required
operational data and not mixing them with configurational data.

JIRA: NETCONF-1142
Change-Id: I4f1f544f9cf65b6f58ad9c2068cec6ac1c0927f0
Signed-off-by: Peter Suna <peter.suna@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/main/java/org/opendaylight/restconf/openapi/model/builder/OperationBuilder.java
restconf/restconf-openapi/src/test/java/org/opendaylight/restconf/openapi/OperationalDataTest.java