data parser CHANGE unify API with schema parser and use input handler
diff --git a/src/context.c b/src/context.c
index 62f3de7..a0f432c 100644
--- a/src/context.c
+++ b/src/context.c
@@ -27,6 +27,7 @@
 
 #include "common.h"
 #include "hash_table.h"
+#include "parser_data.h"
 #include "plugins_types.h"
 #include "set.h"
 #include "tree.h"
@@ -771,7 +772,7 @@
         root_bis = 0;
     }
 
-    if (lyd_validate(&root, NULL, LYD_VALOPT_DATA_ONLY)) {
+    if (lyd_validate(&root, NULL, LYD_VALIDATE_PRESENT)) {
         goto error;
     }