codeと、人が読んで理解できるmessageがあります。
Example
プロパティ
string
失敗したバリデーションルールを一意に識別するための識別子です。例:
"username-too-short", "username-invalid-characters"string
バリデーションエラーに関連するフィールドで、通常は “username”、“email”、または “phone” です。
string
エラーの内容を人が読んで理解できる形で説明したものです。例:
"Username must be at least 3 characters long."