schema compile FEATURE two step unres resolution
There is module unres resolved after the module
is compiled and global unres that is resolved
after all the newly implemented modules are
compiled.
diff --git a/src/xpath.c b/src/xpath.c
index c8beb28..14738c7 100644
--- a/src/xpath.c
+++ b/src/xpath.c
@@ -1552,7 +1552,7 @@
/* ignore errors, the value may not satisfy schema constraints */
rc = type->plugin->store(src->ctx, type, str, strlen(str), LY_TYPE_STORE_DYNAMIC, src->format, src->prefix_data,
- LYD_HINT_DATA, xp_node->node->schema, &val, &err);
+ LYD_HINT_DATA, xp_node->node->schema, &val, NULL, &err);
ly_err_free(err);
if (rc) {
/* invalid value */
@@ -3333,7 +3333,7 @@
type = ((struct lysc_node_leaf *)scnode)->type;
if (type->basetype != LY_TYPE_IDENT) {
rc = type->plugin->store(set->ctx, type, value, strlen(value), 0, set->format, set->prefix_data,
- LYD_HINT_DATA, scnode, &storage, &err);
+ LYD_HINT_DATA, scnode, &storage, NULL, &err);
if (rc == LY_EINCOMPLETE) {
rc = LY_SUCCESS;
}
@@ -3701,7 +3701,7 @@
/* it was already evaluated on schema, it must succeed */
rc = ly_path_compile(set->ctx, sleaf->module, (struct lysc_node *)sleaf, lref->path,
- LY_PATH_LREF_TRUE, oper, LY_PATH_TARGET_MANY, LY_PREF_SCHEMA_RESOLVED, lref->prefixes, &p);
+ LY_PATH_LREF_TRUE, oper, LY_PATH_TARGET_MANY, LY_PREF_SCHEMA_RESOLVED, lref->prefixes, NULL, &p);
assert(!rc);
/* get the target node */
@@ -3810,7 +3810,7 @@
/* store args[1] as ident */
rc = val->realtype->plugin->store(set->ctx, val->realtype, args[1]->val.str, strlen(args[1]->val.str),
- 0, set->format, set->prefix_data, LYD_HINT_DATA, leaf->schema, &data, &err);
+ 0, set->format, set->prefix_data, LYD_HINT_DATA, leaf->schema, &data, NULL, &err);
} else {
meta = args[0]->val.meta[i].meta;
val = &meta->value;
@@ -3821,7 +3821,7 @@
/* store args[1] as ident */
rc = val->realtype->plugin->store(set->ctx, val->realtype, args[1]->val.str, strlen(args[1]->val.str), 0,
- set->format, set->prefix_data, LYD_HINT_DATA, meta->parent->schema, &data, &err);
+ set->format, set->prefix_data, LYD_HINT_DATA, meta->parent->schema, &data, NULL, &err);
}
if (err) {