Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

Allow function-calls as validation-expressions #183

Open
flownt opened this issue Jul 17, 2024 · 0 comments
Open

Allow function-calls as validation-expressions #183

flownt opened this issue Jul 17, 2024 · 0 comments

Comments

@flownt
Copy link

flownt commented Jul 17, 2024

For complex or recurring rules it makes sense to put the implementation in a seperate function. However, a function call on its own is nat a valid validation-expression:

validate::validator( f(x) ) fails with 'invalid syntax'.

As a workaround validate::validator( f(x) == TRUE ) does work.

Tested with version 1.1.3.

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
None yet
Projects
None yet
Development

No branches or pull requests

1 participant