UNPKG

@loopback/docs

Version:

Documentation files rendered at [https://loopback.io](https://loopback.io)

34 lines (23 loc) 1.66 kB
--- lang: en title: 'API docs: rest.resthttperrors.validationerrordetails' keywords: LoopBack 4.0, LoopBack 4, Node.js, TypeScript, OpenAPI sidebar: lb4_sidebar editurl: https://github.com/loopbackio/loopback-next/tree/master/packages/rest permalink: /doc/en/lb4/apidocs.rest.resthttperrors.validationerrordetails.html --- <!-- Do not edit this file. It is automatically generated by API Documenter. --> [Home](./index.md) &gt; [@loopback/rest](./rest.md) &gt; [RestHttpErrors](./rest.resthttperrors.md) &gt; [ValidationErrorDetails](./rest.resthttperrors.validationerrordetails.md) ## 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[]`<!-- -->. <b>Signature:</b> ```typescript interface ValidationErrorDetails ``` ## Properties | Property | Type | Description | | --- | --- | --- | | [code](./rest.resthttperrors.validationerrordetails.code.md) | string | A single word code represents the error's type. | | [info](./rest.resthttperrors.validationerrordetails.info.md) | object | Some additional details that the 3 attributes above don't cover. | | [message](./rest.resthttperrors.validationerrordetails.message.md) | string | A human readable description of the error. | | [path](./rest.resthttperrors.validationerrordetails.path.md) | string | A path to the invalid field. |