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

Duplicate error messages are shown inline when anyOf is used #1295

Closed
abhishekpdubey opened this issue May 22, 2019 · 3 comments · Fixed by #3795
Closed

Duplicate error messages are shown inline when anyOf is used #1295

abhishekpdubey opened this issue May 22, 2019 · 3 comments · Fixed by #3795

Comments

@abhishekpdubey
Copy link

While studying the features offered by this library on Live play ground I came across this example where duplicate error messages were displayed.
Please click on above link to see the example on the site.

Notice that when we select empty value for Color palette's color field duplicate errors are shown. Here is the list of errors only for one field -
should be string
should be string
should be equal to one of the allowed values
should be string
should be equal to one of the allowed values
should be string
should be equal to one of the allowed values
should match some schema in anyOf

Is this an expected behavior?

Version

1.5.0

@epicfaace epicfaace added the bug label May 25, 2019
@epicfaace
Copy link
Member

Looks like a bug to me. Thanks for reporting.

@mzvast
Copy link

mzvast commented Apr 8, 2022

So 2 years went by, any progress?

@heath-freenome
Copy link
Member

This still looks like an issue, but it is caused by the ajv validation pointing all of the errors at the color field. It may really be an AJV issue.

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Projects
None yet
Development

Successfully merging a pull request may close this issue.

4 participants