validation BUGFIX import fix
diff --git a/src/validation.h b/src/validation.h
index 9c6d156..35492af 100644
--- a/src/validation.h
+++ b/src/validation.h
@@ -16,6 +16,7 @@
#define LY_VALIDATION_H_
#include "log.h"
+#include "parser_data.h"
#include "tree_data.h"
/**
@@ -72,7 +73,7 @@
* @param[in] val_opts Validation options (@ref datavalidationoptions).
* @return LY_ERR value.
*/
-LY_ERR lyd_validate_defaults_r(struct lyd_node_inner *parent, struct lyd_node **first, const struct lysc_node *sparent,
+LY_ERR lyd_validate_defaults_r(struct lyd_node *parent, struct lyd_node **first, const struct lysc_node *sparent,
const struct lys_module *mod, struct ly_set *node_types, struct ly_set *node_when, int val_opts);
#endif /* LY_VALIDATION_H_ */