tdegrunt / jsonschema

JSON Schema validation
Other
1.83k stars 262 forks source link

Schema Validation Error Body #329

Closed hassaniqbalKhan closed 3 years ago

hassaniqbalKhan commented 3 years ago

I am trying to validate json schema for the api response but on failure, I am unable to figure out the root cause of failure. I have attached the screenshot of the error. I need complete error for which the validation is failing.

Screenshot 2020-12-03 at 4 48 25 PM
awwright commented 3 years ago

I can't tell what's going on here by this alone, but you should be able to debug the error, look at the property that is failing, and then figure out what the value is and what it's supposed to be.

awwright commented 3 years ago

@hasansaghir The validation result should include sufficient information to debug what's going on here. In particular, the property or path properties should tell you the particular instance that is failing.

If you have a particular suggestion on how the error reporting can be improved, please feel free to open a new issue.