ajv-validator / ajv-validator/ajv
Consistency of validation error messages
Offen
enhancement
- Vorherrschende Sprache
- TypeScript
- Sterne
- 14.8k
- Forks
- 1k
- PR-Merge-Kennzahlen
- Keine gemergten PRs in 30 T.
Beschreibung
**What version of Ajv you are you using?**
v8.17.1
**What problem do you want to solve?**
It may be better to keep error messages consistent in terms of expression/format. More specifically, I found a minor issue that properties in dependency errors are not enclosed with quotes (like `must have properties X when property Y is present`) while required properties are enclosed like `must have property 'X'`.
**What do you think is the correct solution to problem?**
Enclose properties with quotes in the case of dependency errors.
**Will you be able to implement it?**
I plan to make a PR.
Beitragsleitfaden
Bewertung
Dieses Issue wurde noch nicht bewertet.