Page Contents
Home > @loopback/rest > ValidationOptions > ajvErrorTransformer
ValidationOptions.ajvErrorTransformer property
A function that transform the ErrorObject
s reported by AJV. This could be used for error messages customization, localization, etc.
Signature:
ajvErrorTransformer?: (errors: ErrorObject[]) => ErrorObject[];