Fix parsing of union values 86/110986/5
authorRobert Varga <robert.varga@pantheon.tech>
Thu, 21 Mar 2024 14:11:17 +0000 (15:11 +0100)
committerRobert Varga <robert.varga@pantheon.tech>
Thu, 21 Mar 2024 14:33:40 +0000 (15:33 +0100)
commit96f4f2137fed20b48f21c0d1a6c48b4e282bc72c
tree643da38f9a776db29148b0a8b34bd26c12d654bc
parent68081495833e1aaabc4d7eda184b29b4276f60f1
Fix parsing of union values

TypeDefinitionAwareCodec is no longer handling unions because it cannot
reliably do so -- because they may indirect through leafref, or end up
being a complex type.

Since we are already handling leafref, identityref and
instance-identifier correctly, complete the translation by adding
explicit handling for unions.

JIRA: NETCONF-1265
Change-Id: I88980ba18df8e52d3395d5f0bcf8b8ef0c187949
Signed-off-by: Robert Varga <robert.varga@pantheon.tech>
restconf/restconf-nb/src/main/java/org/opendaylight/restconf/server/spi/ApiPathNormalizer.java
restconf/restconf-nb/src/test/java/org/opendaylight/restconf/server/spi/NC1265Test.java