Structure
Validation​Error
public struct ValidationError: Swift.Error, Codable
Error expressing Validation result according to Realworld specification.
Example when returned as Response
{
"errors": {
"email": [
"has already been taken"
],
"password": [
"is too short (minimum is 8 characters)"
],
"username": [
"can't be blank",
"is too short (minimum is 1 character)",
"is too long (maximum is 20 characters)"
]
}
}
Relationships
Conforms To
Codable
Swift.Error