---
lang: en
title: 'API docs: rest.requestbodyvalidationoptions'
keywords: LoopBack 4.0, LoopBack 4
sidebar: lb4_sidebar
permalink: /doc/en/lb4/apidocs.rest.requestbodyvalidationoptions.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)

## RequestBodyValidationOptions interface

Options for request body validation using AJV

<b>Signature:</b>

```typescript
export interface RequestBodyValidationOptions extends ajv.Options 
```

## Properties

|  Property | Type | Description |
|  --- | --- | --- |
|  [ajvKeywords](./rest.requestbodyvalidationoptions.ajvkeywords.md) | <code>true &#124; string[]</code> | Enable additional AJV keywords from https://github.com/epoberezkin/ajv-keywords - <code>true</code>: Add all keywords from <code>ajv-keywords</code> - <code>string[]</code>: Add an array of keywords from <code>ajv-keywords</code> |
|  [compiledSchemaCache](./rest.requestbodyvalidationoptions.compiledschemacache.md) | <code>SchemaValidatorCache</code> | Custom cache for compiled schemas by AJV. This setting makes it possible to skip the default cache. |


