schema compile BUGFIX check all union values for a valid one

Instead of each of its type separately.
Fixes sysrepo/sysrepo#3028
diff --git a/tests/utests/schema/test_schema.c b/tests/utests/schema/test_schema.c
index 18d61f0..1451d9d 100644
--- a/tests/utests/schema/test_schema.c
+++ b/tests/utests/schema/test_schema.c
@@ -1159,7 +1159,7 @@
             "}}"
             "}";
     assert_int_equal(lys_parse_mem(UTEST_LYCTX, str, LYS_IN_YANG, NULL), LY_EVALID);
-    CHECK_LOG_CTX("Enumeration type of node \"l\" without any (or all disabled) valid values.", "Schema location \"/a:l\".");
+    CHECK_LOG_CTX("Node \"l\" without any (or all disabled) valid values.", "Schema location \"/a:l\".");
 
     /* disabled default value */
     str = "module a {"