Skip to content

Validations type is too restrictive #729

@ugostack

Description

@ugostack

Hello everyone,

If we want to pass some specific validation like a RegExp object, it seems that the type is too restrictive. It supports only a Record of string, Validation where Validation is a string, boolean or a validation function.

https://github.com/formsy/formsy-react/blob/master/src/interfaces.ts#L22

I think that the Validation should support RegExp :)

Thank you in advance,

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