Page Contents

Home > @loopback/rest > ValidationOptions > ajvErrorTransformer

ValidationOptions.ajvErrorTransformer property

A function that transform the ErrorObjects reported by AJV. This could be used for error messages customization, localization, etc.

Signature:

ajvErrorTransformer?: (errors: ErrorObject[]) => ErrorObject[];