---
lang: en
title: 'API docs: rest.requestbodyvalidationoptions.ajverrortransformer'
keywords: LoopBack 4.0, LoopBack 4, Node.js, TypeScript, OpenAPI
sidebar: lb4_sidebar
editurl: https://github.com/strongloop/loopback-next/tree/master/packages/rest
permalink: /doc/en/lb4/apidocs.rest.requestbodyvalidationoptions.ajverrortransformer.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; [ajvErrorTransformer](./rest.requestbodyvalidationoptions.ajverrortransformer.md)

## RequestBodyValidationOptions.ajvErrorTransformer property

A function that transform the `ErrorObject`<!-- -->s reported by AJV. This could be used for error messages customization, localization, etc.

<b>Signature:</b>

```typescript
ajvErrorTransformer?: (errors: ajv.ErrorObject[]) => ajv.ErrorObject[];
```

