The property condition is not defined in document to validate but its default value should be used to test the if condition.
The current implementation of json-schema-validator throws an exception of type std::invalid_argument: At of {} - required property 'data' not found in object
Default values of sub-schema are not taken into account when a conditional schema is validated.
For instance , an empty JSON document must be validated against the follow JSON schema:
The property
condition
is not defined in document to validate but its default value should be used to test theif
condition.The current implementation of
json-schema-validator
throws an exception of typestd::invalid_argument
:At of {} - required property 'data' not found in object