Page Contents

Home > @loopback/rest > RequestBodyValidationOptions

RequestBodyValidationOptions interface

Options for request body validation using AJV


export interface RequestBodyValidationOptions extends ajv.Options 


Property Type Description
ajvKeywords true | string[] Enable additional AJV keywords from - 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.