@@ -625,12 +625,23 @@ lyd_value_validate(const struct ly_ctx *ctx, const struct lysc_node *schema, con
625625{
626626 LY_CHECK_ARG_RET (ctx , schema , !value_len || value , LY_EINVAL );
627627
628- return lyd_value_validate2 (ctx , schema , value , value_len , LY_VALUE_JSON , NULL , ctx_node , NULL , realtype , canonical );
628+ return lyd_value_validate3 (ctx , schema , value , value_len , LY_VALUE_JSON , NULL , LYD_HINT_DATA , ctx_node , NULL ,
629+ realtype , canonical );
630+ }
631+
632+ LIBYANG_API_DEF LY_ERR
633+ lyd_value_validate2 (const struct ly_ctx * ctx , const struct lysc_node * schema , const char * value , uint32_t value_len ,
634+ uint32_t hints , const struct lyd_node * ctx_node , const struct lysc_type * * realtype , const char * * canonical )
635+ {
636+ LY_CHECK_ARG_RET (ctx , schema , !value_len || value , LY_EINVAL );
637+
638+ return lyd_value_validate3 (ctx , schema , value , value_len , LY_VALUE_JSON , NULL , hints , ctx_node , NULL ,
639+ realtype , canonical );
629640}
630641
631642LY_ERR
632- lyd_value_validate2 (const struct ly_ctx * ctx , const struct lysc_node * schema , const char * value , size_t value_len ,
633- LY_VALUE_FORMAT format , void * prefix_data , const struct lyd_node * ctx_node ,
643+ lyd_value_validate3 (const struct ly_ctx * ctx , const struct lysc_node * schema , const char * value , size_t value_len ,
644+ LY_VALUE_FORMAT format , void * prefix_data , uint32_t hints , const struct lyd_node * ctx_node ,
634645 const struct lysc_ext_instance * top_ext , const struct lysc_type * * realtype , const char * * canonical )
635646{
636647 LY_ERR rc ;
@@ -652,8 +663,7 @@ lyd_value_validate2(const struct ly_ctx *ctx, const struct lysc_node *schema, co
652663 type_plg = LYSC_GET_TYPE_PLG (type -> plugin_ref );
653664
654665 /* store */
655- rc = type_plg -> store (ctx , type , value , value_len * 8 , 0 , format , prefix_data , LYD_HINT_DATA , schema , top_ext , & val ,
656- NULL , & err );
666+ rc = type_plg -> store (ctx , type , value , value_len * 8 , 0 , format , prefix_data , hints , schema , top_ext , & val , NULL , & err );
657667 if (!rc || (rc == LY_EINCOMPLETE )) {
658668 stored = 1 ;
659669 }
0 commit comments