Skip to content

all() passes validation even when a rule throws an error #200

@grimmjulian

Description

@grimmjulian

Hi, thanks for the great package! It really helps a lot.

I’ve been using the all() and any() validation functions and encountered some unexpected behavior:

When one of the rules inside the confrontation object throws an error (e.g., due to missing column), the overall validation still passes. I would expect that in such cases, the validation should fail, since an error likely means something went wrong with the check.

val <- validator(a >0)
out <- confront(women, val)
all(out)
# TRUE

Would love to know if this is intentional — and if not, whether you'd consider changing the behavior so that errors within rules cause the overall validation to fail.

Thanks again!

Metadata

Metadata

Assignees

No one assigned

    Labels

    No labels
    No labels

    Type

    No type

    Projects

    No projects

    Milestone

    No milestone

    Relationships

    None yet

    Development

    No branches or pull requests

    Issue actions