MCPcopy Create free account
hub / github.com/pboettch/json-schema-validator / error

Method error

test/json-schema-validate.cpp:39–43  ·  view source on GitHub ↗

Source from the content-addressed store, hash-verified

37class custom_error_handler : public nlohmann::json_schema::basic_error_handler
38{
39 void error(const nlohmann::json::json_pointer &ptr, const json &instance, const std::string &message) override
40 {
41 nlohmann::json_schema::basic_error_handler::error(ptr, instance, message);
42 std::cerr << "ERROR: '" << ptr << "' - '" << instance << "': " << message << "\n";
43 }
44};
45
46int main(int argc, char *argv[])

Callers

nothing calls this directly

Calls

no outgoing calls

Tested by

no test coverage detected