Open
Description
Hi,
I noticed that the library by default just throws std::invalid_argument here
json-schema-validator/src/json-validator.cpp
Line 1302 in 89ed13d
I don't want to catch std::invalid_argument. I know I can provide my own error handler, but it looks identical to the default one except that it throws a subclass of std::invalid_argument.
So I wonder if the lib itself could not just do that by default?
A second thing I wondered:
Couldn't this member function made const and therefore every argument of validate made const too? This would allow to pass RValue to validate().
So validate(j, MyHandler {});