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

Method error

test/errors.cpp:54–59  ·  view source on GitHub ↗

Source from the content-addressed store, hash-verified

52class store_ptr_err_handler : public nlohmann::json_schema::basic_error_handler
53{
54 void error(const nlohmann::json::json_pointer &ptr, const json &instance, const std::string &message) override
55 {
56 nlohmann::json_schema::basic_error_handler::error(ptr, instance, message);
57 std::cerr << "ERROR: '" << ptr << "' - '" << instance << "': " << message << "\n";
58 failed_pointers.push_back(ptr);
59 }
60
61public:
62 std::vector<nlohmann::json::json_pointer> failed_pointers;

Callers

nothing calls this directly

Calls

no outgoing calls

Tested by

no test coverage detected