Classes | |
| struct | schema_file |
Public Member Functions | |
| root_schema (schema_loader &&loader, format_checker &&format, content_checker &&content) | |
| format_checker & | format_check () |
| content_checker & | content_check () |
| void | insert (const json_uri &uri, const std::shared_ptr< schema > &s) |
| void | insert_unknown_keyword (const json_uri &uri, const std::string &key, json &value) |
| std::shared_ptr< schema > | get_or_create_ref (const json_uri &uri) |
| void | set_root_schema (json sch) |
| void | validate (const json::json_pointer &ptr, const json &instance, json_patch &patch, error_handler &e, const json_uri &initial) const |
| root_schema (schema_loader &&loader, format_checker &&format, content_checker &&content) | |
| format_checker & | format_check () |
| content_checker & | content_check () |
| void | insert (const json_uri &uri, const std::shared_ptr< schema > &s) |
| void | insert_unknown_keyword (const json_uri &uri, const std::string &key, json &value) |
| std::shared_ptr< schema > | get_or_create_ref (const json_uri &uri) |
| void | set_root_schema (json sch) |
| void | validate (const json::json_pointer &ptr, const json &instance, json_patch &patch, error_handler &e, const json_uri &initial) const |
Private Member Functions | |
| schema_file & | get_or_create_file (const std::string &loc) |
| schema_file & | get_or_create_file (const std::string &loc) |
Private Attributes | |
| schema_loader | loader_ |
| format_checker | format_check_ |
| content_checker | content_check_ |
| std::shared_ptr< schema > | root_ |
| std::map< std::string, schema_file > | files_ |
Definition at line 142 of file json-validator.cpp.
|
inline |
Definition at line 169 of file json-validator.cpp.
References content_check_, format_check_, and loader_.
Referenced by nlohmann::json_schema::json_validator::json_validator().
|
inline |
Definition at line 169 of file json-validator.cpp.
|
inline |
Definition at line 180 of file json-validator.cpp.
References content_check_.
Referenced by anonymous_namespace{json-validator.cpp}::string::string(), and anonymous_namespace{json-validator.cpp}::string::validate().
|
inline |
Definition at line 180 of file json-validator.cpp.
|
inline |
Definition at line 179 of file json-validator.cpp.
References format_check_.
Referenced by anonymous_namespace{json-validator.cpp}::string::string(), and anonymous_namespace{json-validator.cpp}::string::validate().
|
inline |
Definition at line 179 of file json-validator.cpp.
|
inlineprivate |
Definition at line 159 of file json-validator.cpp.
References files_.
Referenced by get_or_create_ref(), insert(), and insert_unknown_keyword().
|
inlineprivate |
|
inline |
Definition at line 244 of file json-validator.cpp.
References nlohmann::json_uri::fragment(), get_or_create_file(), nlohmann::json_uri::location(), anonymous_namespace{json-validator.cpp}::schema::make(), nlohmann::json_uri::pointer(), nlohmann::json_schema::root_schema::schema_file::schemas, nlohmann::json_uri::to_string(), nlohmann::json_schema::root_schema::schema_file::unknown_keywords, and nlohmann::json_schema::root_schema::schema_file::unresolved.
Referenced by anonymous_namespace{json-validator.cpp}::schema::make().
|
inline |
Definition at line 244 of file json-validator.cpp.
|
inline |
Definition at line 182 of file json-validator.cpp.
References nlohmann::json_uri::fragment(), get_or_create_file(), nlohmann::json_uri::location(), nlohmann::json_schema::root_schema::schema_file::schemas, anonymous_namespace{json-validator.cpp}::schema_ref::set_target(), nlohmann::json_uri::to_string(), and nlohmann::json_schema::root_schema::schema_file::unresolved.
Referenced by anonymous_namespace{json-validator.cpp}::schema::make().
|
inline |
Definition at line 182 of file json-validator.cpp.
|
inline |
Definition at line 201 of file json-validator.cpp.
References nlohmann::json_uri::append(), get_or_create_file(), insert_unknown_keyword(), nlohmann::json_uri::location(), anonymous_namespace{json-validator.cpp}::schema::make(), nlohmann::json_uri::pointer(), nlohmann::json_schema::root_schema::schema_file::unknown_keywords, and nlohmann::json_schema::root_schema::schema_file::unresolved.
Referenced by insert_unknown_keyword(), and anonymous_namespace{json-validator.cpp}::schema::make().
|
inline |
Definition at line 201 of file json-validator.cpp.
|
inline |
Definition at line 280 of file json-validator.cpp.
References files_, loader_, anonymous_namespace{json-validator.cpp}::schema::make(), root_, nlohmann::json_schema::root_schema::schema_file::schemas, and nlohmann::json_schema::root_schema::schema_file::unresolved.
Referenced by nlohmann::json_schema::json_validator::set_root_schema(), and nlohmann::json_schema::json_validator::set_root_schema().
|
inline |
Definition at line 280 of file json-validator.cpp.
|
inline |
Definition at line 340 of file json-validator.cpp.
References nlohmann::json_schema::error_handler::error(), files_, nlohmann::json_uri::fragment(), nlohmann::json_uri::location(), root_, nlohmann::json_schema::root_schema::schema_file::schemas, nlohmann::json_uri::to_string(), and anonymous_namespace{json-validator.cpp}::schema::validate().
Referenced by nlohmann::json_schema::json_validator::validate().
|
inline |
Definition at line 340 of file json-validator.cpp.
|
private |
Definition at line 146 of file json-validator.cpp.
Referenced by content_check(), and root_schema().
|
private |
Definition at line 157 of file json-validator.cpp.
Referenced by get_or_create_file(), set_root_schema(), and validate().
|
private |
Definition at line 145 of file json-validator.cpp.
Referenced by format_check(), and root_schema().
|
private |
Definition at line 144 of file json-validator.cpp.
Referenced by root_schema(), and set_root_schema().
|
private |
Definition at line 148 of file json-validator.cpp.
Referenced by set_root_schema(), and validate().