@loopback/docs
Version:
Documentation for LoopBack 4
30 lines (19 loc) • 921 B
Markdown
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) > [@loopback/rest](./rest.md) > [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 |
| --- | --- | --- |
| [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. |