Tencent / rapidjson

A fast JSON parser/generator for C++ with both SAX/DOM style API
http://rapidjson.org/
Other
14.29k stars 3.53k forks source link

Allow all validation failures to be reported #1835

Closed smhdfdl closed 3 years ago

smhdfdl commented 3 years ago

My requirement is to parse and validate a JSON document received from a remote source against a JSON schema, and to report all the validation failures in the document. In other words, do not quit when the first validation failure is encountered, but instead add all failures to the validator's error structure. The software that will use RapidJSON already does this for XML documents that are validated with XML Schema, and text/binary documents that are parsed and validated with DFDL schema.

smhdfdl commented 3 years ago

I will shortly be submitting a PR to provide this feature.

smhdfdl commented 3 years ago

PR merged