validation BUGFIX skip opaque nodes
diff --git a/src/validation.c b/src/validation.c
index ca00b7e..d999a3f 100644
--- a/src/validation.c
+++ b/src/validation.c
@@ -1378,7 +1378,7 @@
 
         /* opaque data */
         if (!node->schema) {
-            LOGVAL(LYD_CTX(node), LYVE_DATA, "Opaque node \"%s\" found.", ((struct lyd_node_opaq *)node)->name.name);
+            LOGVAL(LYD_CTX(node), LYVE_DATA, "Invalid opaque node \"%s\" found.", ((struct lyd_node_opaq *)node)->name.name);
             LOG_LOCBACK(0, 1, 0, 0);
             return LY_EVALID;
         }
@@ -1459,6 +1459,10 @@
     struct lyd_node *node;
 
     LYD_TREE_DFS_BEGIN(root, node) {
+        if (!node->schema) {
+            continue;
+        }
+
         LY_LIST_FOR(node->meta, meta) {
             if ((*(const struct lysc_type **)meta->annotation->substmts[ANNOTATION_SUBSTMT_TYPE].storage)->plugin->validate) {
                 /* metadata type resolution */