ajv-validator / ajv-validator/ajv-errors

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

Aberta
#151 0 comentários 0 reações 0 responsáveis Ver no GitHub
Linguagem predominante
TypeScript
Estrelas
289
Forks
21
Métricas de merge de PRs
Nenhum PR com merge em 30d

Descrição

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

Guia de contribuição

Nenhum guia de contribuição indexado para este repositório

Avaliação

Esta issue ainda não foi avaliada.

Receba novas issues na sua caixa de entrada

Um resumo curto de issues do GitHub para quem está começando.