Extending AbstractProcessingReport

36 views
Skip to first unread message

SunProps

unread,
Mar 27, 2015, 3:08:25 AM3/27/15
to json-schem...@googlegroups.com

I am new to json-schema-validator and want to provide a validator with the option to validate successfully despite missing required fields in the instance data. I extended AbstractProcessingReport but do not know how to use it during my validation. Is there a simple way to do that? Is extending the AbstractProcessingReport the best way to accomplish the goal?

Francis Galiegue

unread,
Mar 27, 2015, 3:45:05 AM3/27/15
to SunProps, json-schem...@googlegroups.com
Hello,
That's not really what you want.

What you really want to do is to modify the necessary schema keywords
with your own. Now, what to replace depends on the schema you have and
the data you wish to replace.

Or maybe there's another solution as well. Can you explain your situation?

--
Francis Galiegue, fgal...@gmail.com, https://github.com/fge
JSON Schema in Java: http://json-schema-validator.herokuapp.com
Parsers in pure Java: https://github.com/fge/grappa

SunProps

unread,
Mar 27, 2015, 8:36:17 AM3/27/15
to json-schem...@googlegroups.com
I just need a validator that I can pass any schema and instance data to and it will only fail if it has errors other than missing required data. That way, we can use it to validate the data that has been supplied so far even if the instance is not completely populated. I should probably just build a wrapper around json-schema-validator to do that.

SunProps

unread,
Mar 27, 2015, 9:23:43 AM3/27/15
to json-schem...@googlegroups.com, sunli...@gmail.com
Sorry Francis. I meant to reply to your post. I appreciate your input. :)
Reply all
Reply to author
Forward
0 new messages