@loopback/docs
Version:
Documentation for LoopBack 4
24 lines (16 loc) • 923 B
Markdown
---
lang: en
title: 'API docs: rest.requestbodyvalidationoptions.ajverrors'
keywords: LoopBack 4.0, LoopBack 4
sidebar: lb4_sidebar
editurl: https://github.com/strongloop/loopback-next/tree/master/packages/rest
permalink: /doc/en/lb4/apidocs.rest.requestbodyvalidationoptions.ajverrors.html
---
<!-- Do not edit this file. It is automatically generated by API Documenter. -->
[Home](./index.md) > [@loopback/rest](./rest.md) > [RequestBodyValidationOptions](./rest.requestbodyvalidationoptions.md) > [ajvErrors](./rest.requestbodyvalidationoptions.ajverrors.md)
## RequestBodyValidationOptions.ajvErrors property
Enable custom error messages in JSON-Schema for AJV validator from https://github.com/epoberezkin/ajv-errors - `true`<!-- -->: Enable `ajv-errors` - `AjvErrorOptions`<!-- -->: Enable `ajv-errors` with options
<b>Signature:</b>
```typescript
ajvErrors?: true | AjvErrorOptions;
```