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

Method error

test/binary-validation.cpp:75–82  ·  view source on GitHub ↗

Source from the content-addressed store, hash-verified

73class store_ptr_err_handler : public nlohmann::json_schema::basic_error_handler
74{
75 void error(const nlohmann::json::json_pointer &ptr, const json &, const std::string &message) override
76 {
77 nlohmann::json_schema::basic_error_handler::error(ptr, "", message);
78 std::cerr << "ERROR: '" << ptr << "' - '"
79 << ""
80 << "': " << message << "\n";
81 failed_pointers.push_back(ptr);
82 }
83
84public:
85 std::vector<nlohmann::json::json_pointer> failed_pointers;

Callers

nothing calls this directly

Calls

no outgoing calls

Tested by

no test coverage detected