A unique identifier for the validation rule that failed.
Example: "username-too-short", "username-invalid-characters"
A human-readable description of the error.
Example: "Username must be at least 3 characters long."
The field associated with the validation error, typically "username", "email", or "phone".
Represents a single username validation error returned during validation.
Each error has a machine-readable
codeand a human-readablemessage.