Page Contents

Home > @loopback/rest > ValidationOptions > ajvErrors

ValidationOptions.ajvErrors property

Enable custom error messages in JSON-Schema for AJV validator from https://github.com/epoberezkin/ajv-errors - true: Enable ajv-errors - AjvErrorOptions: Enable ajv-errors with options

Signature:

ajvErrors?: true | AjvErrorOptions;