Add YangErrorsBody 35/111435/2
authorRobert Varga <robert.varga@pantheon.tech>
Tue, 16 Apr 2024 16:28:43 +0000 (18:28 +0200)
committerRobert Varga <robert.varga@pantheon.tech>
Tue, 16 Apr 2024 19:19:25 +0000 (21:19 +0200)
commitc79bdbd939d23b6ca863e94aeda5715b8b121f62
tree89733d15a890bf2a3fc0460792150b69d64af616
parent844045c11a143abda8a1f33c51dfd68edf13da0c
Add YangErrorsBody

YangErrorsBody is the canonical server-side representation of a set of
reported errors.

Shift serialization logic to this server.api construct, eliminating the
use of intermediate transformers in favor of a centralized indenting
constract.

JIRA: NETCONF-1188
Change-Id: If9f0b8c91a93726444e45b9c261aeb198cc9cc00
Signed-off-by: Robert Varga <robert.varga@pantheon.tech>
restconf/restconf-nb/src/main/java/org/opendaylight/restconf/nb/rfc8040/legacy/RestconfDocumentedExceptionMapper.java
restconf/restconf-nb/src/main/java/org/opendaylight/restconf/server/api/ServerErrorInfo.java
restconf/restconf-nb/src/main/java/org/opendaylight/restconf/server/api/YangErrorsBody.java [new file with mode: 0644]
restconf/restconf-nb/src/main/java/org/opendaylight/restconf/server/spi/FormattableBodySupport.java