ajv-validator / ajv-validator/ajv-errors

Is it possible to define a "dictionary" of common error messages?

未关闭
#151 0 条评论 0 个 reaction 已指派 0 人 在 GitHub 查看
主要语言
TypeScript
星标
289
派生
21
PR 合并指标
30 天内没有已合并 PR

描述

Hey folks. Is it possible to define a list of common error messages, so I don't have to repeat the same message in every schema.

For instance, e.g. `minLength`, I don't want to rewrite the same message every single time, hence, I'd want to define some of the "global" errors. And if this is not possible, does any of the current maintainers knows if it's feasible to implement something like that in this library, I'm happy to contribute.

Thanks in advance

贡献指南

这个仓库没有索引到贡献指南

评估

这个 Issue 还没有评估数据。

把新 issue 发到你的邮箱

精选适合新手参与的 GitHub issue 摘要。