From: Vasek Sraier Date: Wed, 11 Mar 2020 14:15:11 +0000 (+0100) Subject: sysrepo-lua: fixed validation X-Git-Url: http://git.ipfire.org/?a=commitdiff_plain;h=c6d34c33d08f27425c73d46fa2c09180c1507994;p=thirdparty%2Fknot-resolver.git sysrepo-lua: fixed validation --- diff --git a/modules/sysrepo-lua/cbindings/sysrepo_clib.c b/modules/sysrepo-lua/cbindings/sysrepo_clib.c index 2e9881a03..9a0cdec03 100644 --- a/modules/sysrepo-lua/cbindings/sysrepo_clib.c +++ b/modules/sysrepo-lua/cbindings/sysrepo_clib.c @@ -295,7 +295,7 @@ KR_EXPORT const struct lys_node* schema_root() { KR_EXPORT int node_validate(struct lyd_node* node) { assert(node != NULL); assert(ly_context != NULL); - return lyd_validate(&node, LYD_OPT_DATA | LYD_OPT_STRICT, (void*) ly_context); + return lyd_validate(&node, LYD_OPT_DATA | LYD_OPT_STRICT | LYD_OPT_DATA_NO_YANGLIB, (void*) ly_context); } KR_EXPORT void node_free(struct lyd_node* node) {