Skip to content

Be able to set custom keyword for error messages #141

Open
@davis90

Description

Hi!

Thanks for your great libraries. It's cool to work with.

Being able to define the key for the error messages could be nice.

maybe something like:

import Ajv from 'ajv'
import ajvErrors from 'ajv-errors'

let ajv = new Ajv({ allErrors: true })
ajv = ajvErrors(ajv, { keyword: "myCustomErrorMessage" })

what is your opinion about that?

thank for all!

Metadata

Assignees

No one assigned

    Labels

    No labels
    No labels

    Type

    No type

    Projects

    No projects

    Milestone

    No milestone

    Relationships

    None yet

    Development

    No branches or pull requests

    Issue actions