Skip to content

Allow function-calls as validation-expressions #183

@flownt

Description

@flownt

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.

Metadata

Metadata

Assignees

No one assigned

    Labels

    No labels
    No labels

    Type

    No type
    No fields configured for issues without a type.

    Projects

    No projects

    Milestone

    No milestone

    Relationships

    None yet

    Development

    No branches or pull requests

    Issue actions