Skip to content

Allow async custom validation on server #754

@thumptech

Description

@thumptech

I use custom validation on the server that requires fetching regular expressions from another collection to do the validation with. Obviously I could move the validation to my methods, but I'd prefer if I could keep it in the custom field validations as it seems far more elegant.

I'd like to see the validate function be implemented as an async function to allow this to happen. I see work is already happening in the autoValue part of this package for async compatibility, so I am going to (boldly) assume that it is possible for the custom validation function.

I'd like a yes or no as to whether or not this is likely to happen, so I can either move my validation to my method calls or wait for a new version, or attempt to hack up the package myself.

Metadata

Metadata

Assignees

No one assigned

    Type

    No type

    Projects

    No projects

    Milestone

    No milestone

    Relationships

    None yet

    Development

    No branches or pull requests

    Issue actions