how to get all invalid fields in json-schema-validator for java application
Closed this issue · 2 comments
ZuoJunLN commented
when I use validate(schema, instance) function to validate json instance, if this json instance includes multiple invalid fields, I only get one error message.
Is there any way we can get all invalid fields in one validate() function call?
Sorry, I find the validate() function has the third param can do that.
dheepakji commented
@ZuoJunLN Which library you are using for comparing the schema and how did you get the invalid fields. If you describe it would be helpful. Thanks a lot in advance!
ZuoJunLN commented
Thanks for your reply.
From the JsonValidator class, function validate(), if I provide the third parameter with value “true”, I will get all invalid fields in my json instance.
Thanks!
Jun
From: dheepakji <notifications@github.com>
Sent: Wednesday, July 24, 2019 11:15 AM
To: java-json-tools/json-schema-validator <json-schema-validator@noreply.github.com>
Cc: Zuo, Jun (RIS-ATL) <jun.zuo@lexisnexisrisk.com>; Mention <mention@noreply.github.com>
Subject: Re: [java-json-tools/json-schema-validator] how to get all invalid fields in json-schema-validator for java application (#304)
*** External email: use caution ***
@ZuoJunLN<https://github.com/ZuoJunLN> Which library you are using for comparing the schema and how did you get the invalid fields. If you describe it would be helpful. Thanks a lot in advance!
—
You are receiving this because you were mentioned.
Reply to this email directly, view it on GitHub<#304?email_source=notifications&email_token=AESVXAFPCZJB3CDULUDPDNDQBBWYPA5CNFSM4IGQJLA2YY3PNVWWK3TUL52HS4DFVREXG43VMVBW63LNMVXHJKTDN5WW2ZLOORPWSZGOD2WVG2Y#issuecomment-514675563>, or mute the thread<https://github.com/notifications/unsubscribe-auth/AESVXAH6GUZMWLFEAL4L3BLQBBWYPANCNFSM4IGQJLAQ>.
…---------------------------------------- The information contained in this e-mail message is intended only for the personal and confidential use of the recipient(s) named above. This message may be an attorney-client communication and/or work product and as such is privileged and confidential. If the reader of this message is not the intended recipient or an agent responsible for delivering it to the intended recipient, you are hereby notified that you have received this document in error and that any review, dissemination, distribution, or copying of this message is strictly prohibited. If you have received this communication in error, please notify us immediately by e-mail, and delete the original message.