validation FEATURE optional diff creation
diff --git a/src/parser_lyb.c b/src/parser_lyb.c
index 91d9b2c..0523bce 100644
--- a/src/parser_lyb.c
+++ b/src/parser_lyb.c
@@ -819,12 +819,12 @@
 
         if (!(lybctx->parse_options & LYD_PARSE_ONLY)) {
             /* new node validation, autodelete CANNOT occur, all nodes are new */
-            ret = lyd_validate_new(lyd_node_children_p(node), snode, NULL);
+            ret = lyd_validate_new(lyd_node_children_p(node), snode, NULL, NULL);
             LY_CHECK_GOTO(ret, cleanup);
 
             /* add any missing default children */
             ret = lyd_validate_defaults_r(node, lyd_node_children_p(node), NULL, NULL, &lybctx->unres_node_type,
-                                          &lybctx->when_check, lybctx->validate_options);
+                                          &lybctx->when_check, lybctx->validate_options, NULL);
             LY_CHECK_GOTO(ret, cleanup);
         }