@react-input-validator/rules
Version:
The validation rule objects used by the packages: `@react-input-validator/core`, `@react-input-validator/native` and `@react-input-validator/web`
24 lines (23 loc) • 744 B
JavaScript
;
Object.defineProperty(exports, "__esModule", { value: true });
/**
* https://github.com/atmulyana/react-input-validator
*/
exports.default = {
asyncFail: 'cannot validate',
boolean: 'must be either `true` or `false`',
email: 'invalid email address',
httpReq: {
disconnected: "can't connect to server",
notOk: "server failed to process data",
invalid: "can't interpret server response",
},
integer: 'must be the round number',
invalid: 'invalid',
lengthMax: "exceeds the maximum length of ${max}",
lengthMin: 'the length must be minimum at ${min}',
max: 'maximum ${max}',
min: 'minimum ${min}',
numeric: 'invalid numeric value',
required: 'required'
};