Skip to content

Instantly share code, notes, and snippets.

@fnoquiq
Forked from diego3g/en-validation.json
Created March 10, 2020 22:35
Show Gist options
  • Save fnoquiq/7b3b94387bb9b6e7f7ab9a8dc245ce99 to your computer and use it in GitHub Desktop.
Save fnoquiq/7b3b94387bb9b6e7f7ab9a8dc245ce99 to your computer and use it in GitHub Desktop.
Validation
{
"above": "The {{field}} should be above {{argument.0}}.",
"accepted": "The {{field}} should have been accepted",
"after": "The {{field}} should be a date after {{argument.0}}",
"after_offset_of": "The {{field}} should be after {{argument.0}} {{argument.1}} from today’s date",
"alpha": "The {{field}} should contain letters only",
"alpha_numeric": "The {{field}} should contain letters and numbers only",
"array": "The {{field}} should be an ARRAY.",
"before": "The {{field}} should be a date before {{argument.0}}.",
"before_offset_of": "The {{field}} should be before {{argument.0}} {{argument.1}} from today’s date",
"between": "The {{field}} should be between {{argument.0}} and {{argument.1}}.",
"boolean": "The {{field}} should be true or false.",
"confirmed": "The {{field}} confirmation does not match.",
"date": "The {{field}} should be a valid date",
"date_format": "The {{field}} should be a valid date according to given format {{argument.0}}.",
"different": "The {{field}} and {{argument.0}} should be different.",
"email": "The {{field}} should be a valid email address.",
"ends_with": "The {{field}} should end with given letters ({{argument}}).",
"equals": "The {{field}} should equal {{argument.0}}.",
"exists": "The {{field}} should exists in table {{argument.0}}.",
"file": "The {{field}} should contain a file.",
"in": "The {{field}} should fall within defined values of ({{argument}}).",
"includes": "The {{field}} should include define letters ({{argument}}).",
"integer": "The {{field}} should be an INTEGER.",
"ip": "The {{field}} should be a valid IP address.",
"ipv4": "The {{field}} should be a valid IPV4 address.",
"ipv6": "The {{field}} should be a valid IPV6 address.",
"json": "The {{field}} should be a valid JSON string.",
"max": "The {{field}} should not be more than {{argument.0}}.",
"min": "The {{field}} should not be less than {{argument.0}}.",
"not_contains_at_least": "The {{field}} array should contain at least {{argument.0}} item that's not {{argument.1}}.",
"not_equals": "The {{field}} should be different than {{argument.0}}.",
"not_in": "The {{field}} should not be one of ({{argument}}).",
"object": "The {{field}} should be a valid OBJECT.",
"range": "The {{field}} should be between {{argument.0}} and {{argument.1}}.",
"regex": "The {{field}} format is invalid.",
"required": "The {{field}} is required.",
"required_if": "The {{field}} is required when {{argument.0}} exist.",
"required_when": "The {{field}} is required when value of {{argument.0}} is equal to {{argument.1}}",
"required_with_all": "The {{field}} is required when all of ({{argument}}) are present.",
"required_with_any": "The {{field}} is required when any of ({{argument}}) are present.",
"required_without_all": "The {{field}} is required when none of ({{argument}}) are present.",
"required_without_any": "The {{field}} is required when any of ({{argument}}) are present.",
"same": "The {{field}} and {{argument.0}} should match.",
"starts_with": "The {{field}} should starts with given letters ({{argument}}).",
"string": "The {{field}} should be a STRING.",
"under": "The {{field}} should be under {{argument.0}}.",
"unique": "The {{field}} has already been taken by someone else.",
"url": "The {{field}} should be a valid url."
}
{
"above": "{{field}} deve ser maior de {{argument.0}}.",
"accepted": "{{field}} deve ser aceito.",
"after": "{{field}} deve ser uma data posterior à {{argument.0}}",
"after_offset_of": "{{field}} deve ser posterior à {{argument.0}} {{argument.1}} da data de hoje.",
"alpha": "{{field}} deve conter apenas letras.",
"alpha_numeric": "{{field}} deve conter apenas letras e números.",
"array": "{{field}} deve ser um array.",
"before": "{{field}} deve ser uma data anterior à {{argument.0}}.",
"before_offset_of": "{{field}} deve ser anterior à {{argument.0}} {{argument.1}} da data de hoje.",
"between": "{{field}} deve estar entre {{argument.0}} e {{argument.1}}.",
"boolean": "{{field}} deve ser true ou false.",
"confirmed": "{{field}} confirmação não confere.",
"date": "{{field}} deve ser uma data válida.",
"date_format": "{{field}} deve ser uma data válida de acordo com o formato {{argument.0}}.",
"different": "{{field}} e {{argument.0}} devem ser diferentes.",
"email": "{{field}} deve ser um endereço de e-mail válido.",
"ends_with": "{{field}} deve terminar com ({{argument}}).",
"equals": "{{field}} deve ser igual a {{argument.0}}.",
"exists": "{{field}} deve existir na tabela {{argument.0}}.",
"file": "{{field}} deve conter um arquivo.",
"in": "{{field}} deve ser um dos valores ({{argument}}).",
"includes": "{{field}} deve incluir ({{argument}}).",
"integer": "{{field}} deve ser um inteiro.",
"ip": "{{field}} deve ser um endereço de IP válido.",
"ipv4": "{{field}} deve ser um endereço de IPV4 válido.",
"ipv6": "{{field}} deve ser um endereço de IPV6 válido.",
"json": "{{field}} deve ser uma string JSON válida.",
"max": "{{field}} não deve ser maior que {{argument.0}}.",
"min": "{{field}} não deve ser menor que {{argument.0}}.",
"not_contains_at_least": "O array {{field}} deve conter ao menos {{argument.0}} item que não seja {{argument.1}}.",
"not_equals": "{{field}} deve ser diferente de {{argument.0}}.",
"not_in": "{{field}} não deve ser um dos valores ({{argument}}).",
"object": "{{field}} deve ser um objeto válido.",
"range": "{{field}} deve estar entre {{argument.0}} e {{argument.1}}.",
"regex": "O formato de {{field}} é inválido.",
"required": "{{field}} é obrigatório.",
"required_if": "{{field}} é obrigatório quando {{argument.0}} existir.",
"required_when": "{{field}} é obrigatório quando o valor de {{argument.0}} for igual a {{argument.1}}",
"required_with_all": "{{field}} é obrigatório quando ({{argument}}) estiverem presentes.",
"required_with_any": "{{field}} é obrigatório quando algum de ({{argument}}) estiver presente.",
"required_without_all": "{{field}} é obrigatório quando nenhum de ({{argument}}) estiver presente.",
"required_without_any": "{{field}} é obrigatório quando algum de ({{argument}}) não estiver presente.",
"same": "{{field}} e {{argument.0}} devem corresponder.",
"starts_with": "{{field}} deve começar com ({{argument}}).",
"string": "{{field}} deve ser uma string.",
"under": "{{field}} deve ser menor de {{argument.0}}.",
"unique": "{{field}} já está em uso.",
"url": "{{field}} deve ser uma URL válida."
}
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment