parser BUGFIX do not print opaque node parsing errors
diff --git a/src/parser_json.c b/src/parser_json.c
index 7f0f2d1..b5edae9 100644
--- a/src/parser_json.c
+++ b/src/parser_json.c
@@ -501,6 +501,7 @@
LY_ERR ret = LY_SUCCESS;
struct lyjson_ctx *jsonctx = lydctx->jsonctx;
enum LYJSON_PARSER_STATUS status;
+ uint32_t *prev_lo, temp_lo = 0;
assert(snode);
@@ -523,9 +524,12 @@
if ((ret = lydjson_value_type_hint(jsonctx, &status, type_hint_p))) {
break;
}
+
+ prev_lo = ly_temp_log_options(&temp_lo);
if (ly_value_validate(NULL, snode, jsonctx->value, jsonctx->value_len, LY_VALUE_JSON, NULL, *type_hint_p)) {
ret = LY_ENOT;
}
+ ly_temp_log_options(prev_lo);
break;
case LYS_LIST:
/* lists may not have all its keys */