Skip to content

Commit

Permalink
Fix jsonschema example
Browse files Browse the repository at this point in the history
  • Loading branch information
danielaparker committed Nov 5, 2024
1 parent 3363572 commit f0b7ccb
Show file tree
Hide file tree
Showing 2 changed files with 2 additions and 2 deletions.
2 changes: 1 addition & 1 deletion doc/ref/jsonschema/jsonschema.md
Original file line number Diff line number Diff line change
Expand Up @@ -388,7 +388,7 @@ namespace jsonschema = jsoncons::jsonschema;
// Until 0.174.0, throw a `schema_error` instead of returning json::null()
json resolver(const jsoncons::uri& uri)
{
std::cout << "base: " << uri.base() << ", path: " << uri.path() << "\n\n";
std::cout << "base: " << uri.base().string() << ", path: " << uri.path() << "\n\n";

std::string pathname = "./input/jsonschema/";
pathname += std::string(uri.path());
Expand Down
2 changes: 1 addition & 1 deletion examples/src/jsonschema_examples.cpp
Original file line number Diff line number Diff line change
Expand Up @@ -108,7 +108,7 @@ void validate_three_ways()
// Until 0.174.0, throw a `schema_error` instead of returning json::null()
json resolver(const jsoncons::uri& uri)
{
std::cout << "uri: " << uri.string() << ", path: " << uri.path() << "\n\n";
std::cout << "base: " << uri.base().string() << ", path: " << uri.path() << "\n\n";

std::string pathname = "./input/jsonschema/";
pathname += std::string(uri.path());
Expand Down

0 comments on commit f0b7ccb

Please sign in to comment.