Page Contents
Home > @loopback/rest > RestHttpErrors > ValidationErrorDetails
RestHttpErrors.ValidationErrorDetails interface
An invalid request body error contains a details property as the machine-readable error. Each entry in error.details contains 4 attributes: path, code, info and message. ValidationErrorDetails defines the type of each entry, which is an object. The type of error.details is ValidationErrorDetails[].
Signature:
interface ValidationErrorDetails
Properties
| Property | Modifiers | Type | Description |
|---|---|---|---|
|
string |
A single word code represents the error’s type. | ||
|
object |
Some additional details that the 3 attributes above don’t cover. | ||
|
string |
A human readable description of the error. | ||
|
string |
A path to the invalid field. |