commit | 7931b19ff440b35b7e7b761fbadd5433d01af201 | [log] [tgz] |
---|---|---|
author | Radek Krejci <rkrejci@cesnet.cz> | Thu Jun 25 17:05:03 2020 +0200 |
committer | Radek Krejci <rkrejci@cesnet.cz> | Thu Jul 02 16:09:03 2020 +0200 |
tree | 9eb92443077cb99bdc2092544be8da11cd0ae03f | |
parent | 8de005feca4a5f6d4191b99790a300b93cc5d92a [diff] [blame] |
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; }