data tree FEATURE optional realtype of validated value
diff --git a/src/tree_data.h b/src/tree_data.h
index c5fab5d..531bb2f 100644
--- a/src/tree_data.h
+++ b/src/tree_data.h
@@ -818,12 +818,14 @@
* @param[in] tree Data tree (e.g. when validating RPC/Notification) where the required data instance (leafref target,
* instance-identifier) can be placed. NULL in case the data tree is not yet complete,
* then LY_EINCOMPLETE can be returned.
+ * @param[out] realtype Optional real type of the value.
* @return LY_SUCCESS on success
* @return LY_EINCOMPLETE in case the @p trees is not provided and it was needed to finish the validation (e.g. due to require-instance).
* @return LY_ERR value if an error occurred.
*/
LY_ERR lyd_value_validate(const struct ly_ctx *ctx, const struct lyd_node_term *node, const char *value, size_t value_len,
- ly_clb_resolve_prefix get_prefix, void *get_prefix_data, LYD_FORMAT format, const struct lyd_node *tree);
+ ly_clb_resolve_prefix get_prefix, void *get_prefix_data, LYD_FORMAT format,
+ const struct lyd_node *tree, struct lysc_type **realtype);
/**
* @brief Compare the node's value with the given string value. The string value is first validated according to the node's type.