-
Notifications
You must be signed in to change notification settings - Fork 343
Support validation options in lyd_validate_op() #2572
Copy link
Copy link
Open
Labels
is:enhancementRequest for adding new feature or enahncing functionality.Request for adding new feature or enahncing functionality.status:completedFrom the developer perspective, the issue was solved (bug fixed, question answered,...)From the developer perspective, the issue was solved (bug fixed, question answered,...)
Description
Activity
Metadata
Metadata
Assignees
Labels
is:enhancementRequest for adding new feature or enahncing functionality.Request for adding new feature or enahncing functionality.status:completedFrom the developer perspective, the issue was solved (bug fixed, question answered,...)From the developer perspective, the issue was solved (bug fixed, question answered,...)
Would it be possible to support passing
LYD_VALIDATE_*options tolyd_validate_opfunction?lyd_validate_alldoes support it.Specifically I would need the
LYD_VALIDATE_MULTI_ERRORandLYD_VALIDATE_PRESENT.We need it to determine if a given value is valid for a given leaf in the context of a given data tree. The problem is that we need this to work even if other nodes in the data tree are invalid (unsatisfied must condition, missing required value).