Closed guilhermecastros closed 4 weeks ago
validator-ajv8
5.x
Error messages are not being generated correctly. Curretly the title is not being placed on the correct position.
title
For instance I have a required property that is called a, which its title is First name.
a
First name
The error message that I am getting is
current: must hFirst nameve required property 'a' expected: must have required property 'First name'
must hFirst nameve required property 'a'
must have required property 'First name'
Error messages should be consistent & property title should be placed on the correct position.
Open playground.
You will see that the schema defines properties a & r, which are required.
r
The error messages being displayed are not correct & not readable
must have Last nameequired property 'r'
- OS: - Node: - npm:
No response
Prerequisites
What theme are you using?
validator-ajv8
Version
5.x
Current Behavior
Error messages are not being generated correctly. Curretly the
title
is not being placed on the correct position.For instance I have a required property that is called
a
, which its title isFirst name
.The error message that I am getting is
current:
must hFirst nameve required property 'a'
expected:must have required property 'First name'
Expected Behavior
Error messages should be consistent & property title should be placed on the correct position.
must have required property 'First name'
Steps To Reproduce
Open playground.
You will see that the schema defines properties
a
&r
, which are required.The error messages being displayed are not correct & not readable
must hFirst nameve required property 'a'
must have Last nameequired property 'r'
Environment
Anything else?
No response