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

Error message returned with OneOfNoneSucceed does not include the details of what failed within that oneOf branch #44

Open
avh4 opened this issue Feb 20, 2019 · 2 comments

Comments

@avh4
Copy link

avh4 commented Feb 20, 2019

I am currently looking at a test where I just made some schema changes, and now I am (correctly) getting a schema validation failure, but the error message is not helpful because it doesn't give info about why each branch in my oneOf failed:

    Problem at ``
    
      * OneOfNoneSucceed

It would be great if OneOfNoneSucceed could include info about why each of the branches failed.

@1602
Copy link
Collaborator

1602 commented Feb 27, 2019

Thanks for highlighting this issue, I've made an attempt to improve oneOf validation message by including validation results of each branch. It seems a bit bulky to me though. What do you think of this API change?

@1602
Copy link
Collaborator

1602 commented Apr 13, 2019

Hey @avh4 have you got any chance to look into proposed API change to address this issue?

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

No branches or pull requests

2 participants