MQTTSuite
Loading...
Searching...
No Matches
issue-98.cpp File Reference
Include dependency graph for issue-98.cpp:

Go to the source code of this file.

Functions

int main (void)

Function Documentation

◆ main()

int main ( void )

Definition at line 3 of file issue-98.cpp.

4{
5 nlohmann::json nlBase{{"$ref", "#/unknown/keywords"}};
7
8 try {
9 validator.set_root_schema(nlBase); // this line will log the caught exception
10 } catch (const std::exception &e) {
11
12 if (std::string("after all files have been parsed, '<root>' has still the following undefined references: [/unknown/keywords]") == e.what())
13 return EXIT_SUCCESS;
14 }
15 return EXIT_FAILURE;
16}
nlohmann::json_schema::json_validator validator

References nlohmann::json_schema::json_validator::set_root_schema().

Here is the call graph for this function: