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 | Type | Description |
---|---|---|
code | string |
A single word code represents the error’s type. |
info | object |
Some additional details that the 3 attributes above don’t cover. |
message | string |
A human readable description of the error. |
path | string |
A path to the invalid field. |