How to apply plugin to @middy/validator?

I'm writing a validation schema for a serverless endpoint using ajv and this @middy/validator middleware. There is a note in documentation that the middleware can use external plugins. But it's not clear how to apply them, and there is no example. I want to use ajv-errors plugin for custom error messages, https://github.com/ajv-validator/ajv-errors.

Please drop me a link about how to apply an external plugin or give me an example. Thanks in advance!

How many English words
do you know?
Test your English vocabulary size, and measure
how many words do you know
Online Test
Powered by Examplum