MQTTSuite
Loading...
Searching...
No Matches
issue-98.cpp
Go to the documentation of this file.
1#include <nlohmann/json-schema.hpp>
2
3int main(void)
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}
int main()
Definition format.cpp:34