mirror of
https://github.com/swc-project/swc.git
synced 2024-12-21 12:41:54 +03:00
246bdd5088
swc_bundler: - Ensure that denoland/deno#10141 is fixed. - Run deno tests on ci. - Support nested `export *`. (denoland/deno#10153, denoland/deno#10174) swc_ecma_codegen: - Remove `,` after rest elements. (#1573, denoland/deno#10167) swc_ecma_transforms_optimization: - Don't drop items used by the discriminant of a switch. swc_ecma_transforms_typescript: - Remove constructors without a body.
31 lines
1.2 KiB
TypeScript
31 lines
1.2 KiB
TypeScript
// Loaded from https://deno.land/x/validasaur/src/messages.ts
|
|
|
|
|
|
import type { ValidationMessages } from "./interfaces.ts";
|
|
|
|
export const defaultMessages: ValidationMessages = {
|
|
"fileExists:pathCheck": "file :value doesn't exists",
|
|
"fileExists:stringCheck": "file path must be a string",
|
|
isArray: ":attr must be an array",
|
|
isBool: ":attr must be a boolean",
|
|
isEmail: ":attr is not a valid email address",
|
|
isFloat: ":attr must be a float number",
|
|
isIn: ":value is not allowed",
|
|
isInt: ":attr must be an integer",
|
|
isNumber: ":attr must be a number",
|
|
isNumeric: ":attr must be numeric",
|
|
isString: ":attr must be a string",
|
|
lengthBetween:
|
|
":attr characters length must be between :minLength-:maxLength",
|
|
match: ":attr format is incorrect",
|
|
maxLength: ":attr cannot be higher than :maxValue characters",
|
|
maxNumber: ":attr cannot be higher than :maxValue",
|
|
minLength: ":attr cannot be lower than :minValue characters",
|
|
minNumber: ":attr cannot be lower than :minValue",
|
|
notIn: ":value is not allowed",
|
|
notNull: ":value cannot be null",
|
|
numberBetween: ":value must be between :minValue - :maxValue",
|
|
required: ":attr is required",
|
|
default: ":attr is invalid",
|
|
};
|