How can I detect the following error situation:
A rapidjson::SchemaDocument
is constructed from a rapidjson::Document
, but the JSON contained in that Document
is no proper schema; for example,
{ "type": "object", "properties": [1] }
.
Currently, all I get is an access violation when I validate a document against this faulty schema.
Thanks
Hans