We have parseValue(String), use that instead of playing tricks with
null.
Change-Id: I7c4567ed0fb2db9d018c5aa8e5166910a8e02ed7
Signed-off-by: Robert Varga <robert.varga@pantheon.tech>
// The characters in a key value string are constrained, and some
// characters need to be percent-encoded, as described in Section 3.5.3.
try {
- return databind.jsonCodecs().codecFor(schemaNode, stack).parseValue(null, value);
+ return databind.jsonCodecs().codecFor(schemaNode, stack).parseValue(value);
} catch (IllegalArgumentException e) {
throw new RestconfDocumentedException("Invalid value '" + value + "' for " + schemaNode.getQName(),
ErrorType.PROTOCOL, ErrorTag.INVALID_VALUE, e);