#include <json-schema.hpp>
Public Member Functions | |
| json_uri (const std::string &uri) | |
| const std::string & | scheme () const |
| const std::string & | authority () const |
| const std::string & | path () const |
| const json::json_pointer & | pointer () const |
| const std::string & | identifier () const |
| std::string | fragment () const |
| std::string | url () const |
| std::string | location () const |
| json_uri | derive (const std::string &uri) const |
| json_uri | append (const std::string &field) const |
| std::string | to_string () const |
Static Public Member Functions | |
| static std::string | escape (const std::string &) |
Protected Member Functions | |
| void | update (const std::string &uri) |
| std::tuple< std::string, std::string, std::string, std::string, std::string > | as_tuple () const |
Private Attributes | |
| std::string | urn_ |
| std::string | scheme_ |
| std::string | authority_ |
| std::string | path_ |
| json::json_pointer | pointer_ |
| std::string | identifier_ |
Friends | |
| bool | operator< (const json_uri &l, const json_uri &r) |
| bool | operator== (const json_uri &l, const json_uri &r) |
| std::ostream & | operator<< (std::ostream &os, const json_uri &u) |
Definition at line 47 of file json-schema.hpp.
|
inline |
Definition at line 68 of file json-schema.hpp.
References update().
Referenced by main().
|
inline |
Definition at line 103 of file json-schema.hpp.
References pointer_.
Referenced by json_schema_validator::insert_schema(), nlohmann::json_schema::root_schema::insert_unknown_keyword(), and anonymous_namespace{json-validator.cpp}::schema::make().
|
inlineprotected |
Definition at line 62 of file json-schema.hpp.
References authority_, identifier_, path_, pointer_, scheme_, and urn_.
Referenced by operator<, and operator==.
|
inline |
|
inline |
Definition at line 95 of file json-schema.hpp.
References update().
Referenced by json_schema_validator::insert_schema(), anonymous_namespace{json-validator.cpp}::schema::make(), paths(), and pointer_plain_name().
|
static |
Definition at line 137 of file json-uri.cpp.
Referenced by json_schema_validator::insert_schema().
|
inline |
Definition at line 80 of file json-schema.hpp.
References identifier_, and pointer_.
Referenced by nlohmann::json_schema::root_schema::get_or_create_ref(), nlohmann::json_schema::root_schema::insert(), and nlohmann::json_schema::root_schema::validate().
|
inline |
Definition at line 78 of file json-schema.hpp.
References identifier_.
Referenced by pointer_plain_name().
| std::string nlohmann::json_uri::location | ( | ) | const |
Definition at line 102 of file json-uri.cpp.
References authority_, path_, scheme_, and urn_.
Referenced by nlohmann::json_schema::root_schema::get_or_create_ref(), nlohmann::json_schema::root_schema::insert(), nlohmann::json_schema::root_schema::insert_unknown_keyword(), loader(), to_string(), url(), and nlohmann::json_schema::root_schema::validate().
|
inline |
|
inline |
Definition at line 77 of file json-schema.hpp.
References pointer_.
Referenced by nlohmann::json_schema::root_schema::get_or_create_ref(), nlohmann::json_schema::root_schema::insert_unknown_keyword(), and pointer_plain_name().
|
inline |
| std::string nlohmann::json_uri::to_string | ( | ) | const |
Definition at line 118 of file json-uri.cpp.
References identifier_, location(), and pointer_.
Referenced by EXPECT_EQ(), nlohmann::json_schema::root_schema::get_or_create_ref(), nlohmann::json_schema::root_schema::insert(), json_schema_validator::insert_schema(), anonymous_namespace{json-validator.cpp}::schema::make(), anonymous_namespace{json-validator.cpp}::schema_ref::make_for_default_(), operator<<, and nlohmann::json_schema::root_schema::validate().
|
protected |
Definition at line 16 of file json-uri.cpp.
References authority_, identifier_, path_, pointer_, scheme_, and urn_.
Referenced by derive(), and json_uri().
|
inline |
Definition at line 88 of file json-schema.hpp.
References location().
Referenced by loader(), loader(), and loader().
Definition at line 115 of file json-schema.hpp.
References as_tuple().
|
friend |
Definition at line 120 of file json-schema.hpp.
References as_tuple().
|
private |
Definition at line 52 of file json-schema.hpp.
Referenced by as_tuple(), authority(), location(), and update().
|
private |
Definition at line 56 of file json-schema.hpp.
Referenced by as_tuple(), fragment(), identifier(), to_string(), and update().
|
private |
Definition at line 53 of file json-schema.hpp.
Referenced by as_tuple(), location(), path(), and update().
|
private |
Definition at line 55 of file json-schema.hpp.
Referenced by append(), as_tuple(), fragment(), pointer(), to_string(), and update().
|
private |
Definition at line 51 of file json-schema.hpp.
Referenced by as_tuple(), location(), scheme(), and update().
|
private |
Definition at line 49 of file json-schema.hpp.
Referenced by as_tuple(), location(), and update().