Open
Description
Would it be possible to extend the json_validator::set_root_schema(json &&schema)
function to allow also a custom error handler like json_validator::validate(...)
has?
This would allow me to provide a more precise and user custom error than the exception provides. I am happy to provide a MR if this feature is welcome. I propose following extension:
// error_handler and works the same way than validator error_handler
void json_validator::set_root_schema(json &&schema, error_handler &err);
I am also open for alternatives.
Cheers