Skip to content

Support validation options in lyd_validate_op() #2572

Description

@mbohal

Would it be possible to support passing LYD_VALIDATE_* options to lyd_validate_op function?

lyd_validate_all does support it.

Specifically I would need the LYD_VALIDATE_MULTI_ERROR and LYD_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).

Activity

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment

Metadata

Metadata

Assignees

No one assigned

    Labels

    is:enhancementRequest for adding new feature or enahncing functionality.

    Type

    No type

    Projects

    No projects

      Milestone

      No milestone

      Relationships

      None yet

      Development

      No branches or pull requests

      Issue actions