MQTTSuite
Loading...
Searching...
No Matches
anonymous_namespace{json-validator.cpp}::null Class Reference
Inheritance diagram for anonymous_namespace{json-validator.cpp}::null:
Collaboration diagram for anonymous_namespace{json-validator.cpp}::null:

Public Member Functions

 null (json &, root_schema *root)
 null (json &, root_schema *root)
Public Member Functions inherited from anonymous_namespace{json-validator.cpp}::schema
virtual ~schema ()=default
 schema (root_schema *root)
virtual const jsondefault_value (const json::json_pointer &, const json &, error_handler &) const
void set_default_value (const json &v)
virtual ~schema ()=default
 schema (root_schema *root)
virtual const jsondefault_value (const json::json_pointer &, const json &, error_handler &) const
void set_default_value (const json &v)

Private Member Functions

void validate (const json::json_pointer &ptr, const json &instance, json_patch &, error_handler &e) const override
void validate (const json::json_pointer &ptr, const json &instance, json_patch &, error_handler &e) const override

Additional Inherited Members

Static Public Member Functions inherited from anonymous_namespace{json-validator.cpp}::schema
static std::shared_ptr< schemamake (json &schema, root_schema *root, const std::vector< std::string > &key, std::vector< nlohmann::json_uri > uris)
static std::shared_ptr< schemamake (json &schema, root_schema *root, const std::vector< std::string > &key, std::vector< nlohmann::json_uri > uris)
Protected Member Functions inherited from anonymous_namespace{json-validator.cpp}::schema
virtual std::shared_ptr< schemamake_for_default_ (std::shared_ptr<::schema > &, root_schema *, std::vector< nlohmann::json_uri > &, nlohmann::json &) const
virtual std::shared_ptr< schemamake_for_default_ (std::shared_ptr<::schema > &, root_schema *, std::vector< nlohmann::json_uri > &, nlohmann::json &) const
Protected Attributes inherited from anonymous_namespace{json-validator.cpp}::schema
root_schemaroot_
json default_value_ = nullptr

Detailed Description

Definition at line 978 of file json-validator.cpp.

Constructor & Destructor Documentation

◆ null() [1/2]

anonymous_namespace{json-validator.cpp}::null::null ( json & ,
root_schema * root )
inline

Definition at line 987 of file json-validator.cpp.

988 : schema(root) {}
auto schema
Definition id-ref.cpp:69

References anonymous_namespace{json-validator.cpp}::schema::schema().

Here is the call graph for this function:

◆ null() [2/2]

anonymous_namespace{json-validator.cpp}::null::null ( json & ,
root_schema * root )
inline

Definition at line 987 of file json-validator.cpp.

988 : schema(root) {}

Member Function Documentation

◆ validate() [1/2]

void anonymous_namespace{json-validator.cpp}::null::validate ( const json::json_pointer & ptr,
const json & instance,
json_patch & ,
error_handler & e ) const
inlineoverrideprivatevirtual

Implements anonymous_namespace{json-validator.cpp}::schema.

Definition at line 980 of file json-validator.cpp.

981 {
982 if (!instance.is_null())
983 e.error(ptr, instance, "expected to be null");
984 }
virtual void error(const json::json_pointer &, const json &, const std::string &)=0
static const auto instance
Definition issue-93.cpp:14

References nlohmann::json_schema::error_handler::error().

Here is the call graph for this function:

◆ validate() [2/2]

void anonymous_namespace{json-validator.cpp}::null::validate ( const json::json_pointer & ptr,
const json & instance,
json_patch & ,
error_handler & e ) const
inlineoverrideprivatevirtual

Implements anonymous_namespace{json-validator.cpp}::schema.

Definition at line 980 of file json-validator.cpp.

981 {
982 if (!instance.is_null())
983 e.error(ptr, instance, "expected to be null");
984 }

The documentation for this class was generated from the following file: