Skip to content

Add new validations #3

@dapryor

Description

@dapryor

Add any common use-case validations
One to two per PR

A validator has the following structure:
Input: a single argument. This with be the value provided by user input. This will ALWAYS be a string in the module's current state.
Output: a bool. True for passes validation. False for failed validation

A validator may also be build using a factory.
i.e. pick_from_choices
These should return a function that follows the input/output defined above.

PLEASE ADD TEST

Metadata

Metadata

Assignees

No one assigned

    Projects

    No projects

    Milestone

    No milestone

    Relationships

    None yet

    Development

    No branches or pull requests

    Issue actions