Json Schema Validation APIs - ValidationReport issue

61 views
Skip to first unread message

Venkat Reddy Pakanati

unread,
Oct 4, 2012, 1:48:07 PM10/4/12
to json-...@googlegroups.com
I am trying to create a validation logic using the jsonSchemaValidator API    -     http://fge.github.com/json-schema-validator/stable/index.html

All works fine, except in one situation

when the validation fails and it create a validation report, the messages in that report remains forever, which is forcing the Successful validation to fail, when I do this

bool = validationReport.isSuccess();

even though I instantiate the validation report object every time, it still has the error in it. Can anybody please let me know what is the problem, or how I can remove those messages.

Thanks.

Venkat Reddy Pakanati

unread,
Oct 4, 2012, 3:04:36 PM10/4/12
to json-...@googlegroups.com
Ok, I digged into it and found that, it is failing the validation on the non required field. There is a Non-Mandatory field which I haven't passed, and because of this it is failing. I am guessing that the Json Schema Valiator API is validating wrongly.
Reply all
Reply to author
Forward
0 new messages