object-validator-pro
Version:
Easy Sync & Async object validator.
13 lines (12 loc) • 483 B
JavaScript
const errors = {
default: ':param returned :false',
must: ':param is required.',
typeOf: ':param is not typeOf :option',
min: ':param is too small. (Min. :option)',
max: ':param is too big. (Max. :option)',
minLength: ':param is too short. (Min. :option characters)',
maxLength: ':param is too long. (Max. :option characters)',
selectMin: 'Select at-least :option :param.',
selectMax: 'Select at-most :option :param.',
};
module.exports = errors;