#include <json-schema.hpp>
Public Member Functions | |
| json_validator (schema_loader=nullptr, format_checker=nullptr, content_checker=nullptr) | |
| json_validator (const json &, schema_loader=nullptr, format_checker=nullptr, content_checker=nullptr) | |
| json_validator (json &&, schema_loader=nullptr, format_checker=nullptr, content_checker=nullptr) | |
| json_validator (json_validator &&) | |
| json_validator & | operator= (json_validator &&) |
| json_validator (json_validator const &)=delete | |
| json_validator & | operator= (json_validator const &)=delete |
| ~json_validator () | |
| void | set_root_schema (const json &) |
| void | set_root_schema (json &&) |
| json | validate (const json &) const |
| json | validate (const json &, error_handler &, const json_uri &initial_uri=json_uri("#")) const |
Private Attributes | |
| std::unique_ptr< root_schema > | root_ |
Definition at line 166 of file json-schema.hpp.
| nlohmann::json_schema::json_validator::json_validator | ( | schema_loader | loader = nullptr, |
| format_checker | format = nullptr, | ||
| content_checker | content = nullptr ) |
Definition at line 1457 of file json-validator.cpp.
References root_, and nlohmann::json_schema::root_schema::root_schema().
Referenced by json_validator(), json_validator(), main(), main(), and main().
| nlohmann::json_schema::json_validator::json_validator | ( | const json & | schema, |
| schema_loader | loader = nullptr, | ||
| format_checker | format = nullptr, | ||
| content_checker | content = nullptr ) |
Definition at line 1466 of file json-validator.cpp.
References json_validator(), and set_root_schema().
Referenced by mqtt::bridge::lib::BridgeStore::loadAndValidate(), mqtt::lib::JsonMappingReader::readMappingFromFile(), should_throw(), and nlohmann::json_patch::validateJsonPatch().
| nlohmann::json_schema::json_validator::json_validator | ( | json && | schema, |
| schema_loader | loader = nullptr, | ||
| format_checker | format = nullptr, | ||
| content_checker | content = nullptr ) |
Definition at line 1477 of file json-validator.cpp.
References json_validator(), and set_root_schema().
Referenced by main().
|
default |
|
delete |
|
default |
|
default |
|
delete |
| void nlohmann::json_schema::json_validator::set_root_schema | ( | const json & | schema | ) |
Definition at line 1495 of file json-validator.cpp.
References root_, and nlohmann::json_schema::root_schema::set_root_schema().
Referenced by json_validator(), main(), main(), main(), and anonymous_namespace{issue-105-verbose-combination-errors.cpp}::validate().
| void nlohmann::json_schema::json_validator::set_root_schema | ( | json && | schema | ) |
Definition at line 1500 of file json-validator.cpp.
References root_, and nlohmann::json_schema::root_schema::set_root_schema().
Referenced by json_validator().
Definition at line 1505 of file json-validator.cpp.
References validate().
Referenced by mqtt::bridge::lib::BridgeStore::loadAndValidate(), main(), main(), anonymous_namespace{issue-105-verbose-combination-errors.cpp}::validate(), and nlohmann::json_patch::validateJsonPatch().
| json nlohmann::json_schema::json_validator::validate | ( | const json & | instance, |
| error_handler & | err, | ||
| const json_uri & | initial_uri = json_uri("#") ) const |
Definition at line 1511 of file json-validator.cpp.
References root_, and nlohmann::json_schema::root_schema::validate().
Referenced by main(), main(), main(), anonymous_namespace{issue-105-verbose-combination-errors.cpp}::validate(), and validate().
|
private |
Definition at line 168 of file json-schema.hpp.
Referenced by json_validator(), set_root_schema(), set_root_schema(), and validate().