Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

Consistency of validation error messages #2514

Open
chibacchie opened this issue Dec 16, 2024 · 0 comments · May be fixed by #2515
Open

Consistency of validation error messages #2514

chibacchie opened this issue Dec 16, 2024 · 0 comments · May be fixed by #2515

Comments

@chibacchie
Copy link

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.

chibacchie added a commit to chibacchie/ajv that referenced this issue Dec 16, 2024
@chibacchie chibacchie linked a pull request Dec 16, 2024 that will close this issue
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Development

Successfully merging a pull request may close this issue.

1 participant