ajv – override default message for type validations
I’m trying to upgrade from ajv 6.x to 8.x, as part of the breaking changes between majors, the message for type validation changed from 'should be ${type}'
to 'must be ${type}'
.
How to get ajv.compile() error line and column information
When using ajv.compile(), how do you get line and column information about schema compile errors?