Closed mikeerickson closed 7 years ago
Is there a list of built-in validator rules?
CA
true
I realize I can create custom rules, but no sense in reinventing wheel if they already exist
schemator.defineSchema('Family', { fname: {type: 'string', nullable: false}, lname: {type: 'string', nullable: false}, email: 'string', dob: 'date', state: 'string', hobbies: 'array', gender: 'string', married: {type: 'boolean', nullable: false}, bio: 'string' });
You can get the list of default rules via schemator. availableRulesI()
schemator. availableRulesI()
Is there a list of built-in validator rules?
CA
true
I realize I can create custom rules, but no sense in reinventing wheel if they already exist