---
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) &gt; [@loopback/rest](./rest.md) &gt; [RequestBodyValidationOptions](./rest.requestbodyvalidationoptions.md) &gt; [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;
```

