Page Contents

Home > @loopback/rest > RequestBodyValidationOptions

RequestBodyValidationOptions interface

Options for request body validation using AJV

Signature:

export interface RequestBodyValidationOptions extends ajv.Options 

Properties

Property Type Description
ajvKeywords true | string[] Enable additional AJV keywords from https://github.com/epoberezkin/ajv-keywords - true: Add all keywords from ajv-keywords - string[]: Add an array of keywords from ajv-keywords
compiledSchemaCache SchemaValidatorCache Custom cache for compiled schemas by AJV. This setting makes it possible to skip the default cache.