Home > @loopback/rest > ValidationOptions
ValidationOptions interface
Options for request body validation using AJV
Signature:
export interface ValidationOptions extends AjvOptions
Extends: AjvOptions
Properties
| Property | Modifiers | Type | Description |
|---|---|---|---|
|
(Optional) Enable custom error messages in JSON-Schema for AJV validator from https://github.com/epoberezkin/ajv-errors - | |||
|
(errors: ErrorObject[]) => ErrorObject[] |
(Optional) A function that transform the | ||
|
(options: AjvOptions) => Ajv |
(Optional) A factory to create Ajv instance | ||
|
string[] |
(Optional) Enable additional AJV keywords from https://github.com/epoberezkin/ajv-keywords - | ||
|
(Optional) Custom cache for compiled schemas by AJV. This setting makes it possible to skip the default cache. | |||
|
string[] |
(Optional) An array of keys to be rejected, such as |