Bummer! This is just a preview. You need to be signed in with an account to view the entire instruction.
Well done!
You have completed REST API Validation with Express!
You have completed REST API Validation with Express!
Instruction
Format Validation Error Messages
Our validation errors are currently formatted like this:
{
"errors": [
"Please provide a value for \"name\"",
"Please provide a value for \"email\""
]
}
There's no standard format for REST API validation errors, so you're free to choose a format that suits your application's needs. Whatever format you use, it's important to be consistent so that clients can reliably parse and dis...