Skip to content

Commit 55dc1d6

Browse files
committed
test
1 parent 98140ad commit 55dc1d6

File tree

2 files changed

+6
-2
lines changed

2 files changed

+6
-2
lines changed

src/validation.c

Lines changed: 5 additions & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -1188,7 +1188,11 @@ lyd_validate_minmax(const struct lyd_node *first, const struct lyd_node *parent,
11881188

11891189
if (min) {
11901190
char suffix_path[256];
1191-
snprintf(suffix_path, sizeof(suffix_path), "/%s", snode->name);
1191+
if (parent == NULL) {
1192+
snprintf(suffix_path, sizeof(suffix_path), "/schema:%s", snode->name);
1193+
} else {
1194+
snprintf(suffix_path, sizeof(suffix_path), "/%s", snode->name);
1195+
}
11921196

11931197
ly_log_location(NULL, parent, suffix_path, NULL);
11941198
if (val_opts & LYD_VALIDATE_OPERATIONAL) {

tests/utests/node/list.c

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -1051,7 +1051,7 @@ test_xml(void **state)
10511051
"</user>";
10521052
CHECK_PARSE_LYD_PARAM(data, LYD_XML, 0, LYD_VALIDATE_PRESENT, LY_EVALID, tree);
10531053
assert_null(tree);
1054-
CHECK_LOG_CTX("Too few \"user\" instances.", "/T2:user", 0);
1054+
CHECK_LOG_CTX("Too few \"user\" instances.", "/user", 0);
10551055

10561056
data =
10571057
"<user xmlns=\"urn:tests:T2\">"

0 commit comments

Comments
 (0)