ajv-validator / ajv-validator/ajv-errors

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

Aperta
#151 0 commenti 0 reazioni 0 assegnatari Vedi su GitHub
Lingua principale
TypeScript
Stelle
289
Fork
21
Metriche di merge delle PR
Nessuna PR unita negli ultimi 30g

Descrizione

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

Guida per i contributori

Nessuna guida per i contributori indicizzata per questo repository

Valutazione

Questa issue non è ancora stata valutata.

Ricevi le nuove issue nella tua casella

Un breve riepilogo di issue GitHub adatte ai principianti.