Public Member Functions | |
| object (json &sch, root_schema *root, const std::vector< nlohmann::json_uri > &uris) | |
| object (json &sch, root_schema *root, const std::vector< nlohmann::json_uri > &uris) | |
| Public Member Functions inherited from anonymous_namespace{json-validator.cpp}::schema | |
| virtual | ~schema ()=default |
| schema (root_schema *root) | |
| virtual const json & | default_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 json & | default_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 &patch, error_handler &e) const override |
| void | validate (const json::json_pointer &ptr, const json &instance, json_patch &patch, error_handler &e) const override |
Private Attributes | |
| std::pair< bool, size_t > | maxProperties_ {false, 0} |
| std::pair< bool, size_t > | minProperties_ {false, 0} |
| std::vector< std::string > | required_ |
| std::map< std::string, std::shared_ptr< schema > > | properties_ |
| std::vector< std::pair< std::regex, std::shared_ptr< schema > > > | patternProperties_ |
| std::shared_ptr< schema > | additionalProperties_ |
| std::map< std::string, std::shared_ptr< schema > > | dependencies_ |
| std::shared_ptr< schema > | propertyNames_ |
Additional Inherited Members | |
| Static Public Member Functions inherited from anonymous_namespace{json-validator.cpp}::schema | |
| static std::shared_ptr< schema > | make (json &schema, root_schema *root, const std::vector< std::string > &key, std::vector< nlohmann::json_uri > uris) |
| static std::shared_ptr< schema > | make (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< schema > | make_for_default_ (std::shared_ptr<::schema > &, root_schema *, std::vector< nlohmann::json_uri > &, nlohmann::json &) const |
| virtual std::shared_ptr< schema > | make_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_schema * | root_ |
| json | default_value_ = nullptr |
Definition at line 1039 of file json-validator.cpp.
|
inline |
Definition at line 1117 of file json-validator.cpp.
References additionalProperties_, dependencies_, anonymous_namespace{json-validator.cpp}::schema::make(), maxProperties_, minProperties_, patternProperties_, properties_, propertyNames_, required_, anonymous_namespace{json-validator.cpp}::schema::schema(), and anonymous_namespace{json-validator.cpp}::schema::set_default_value().
|
inline |
Definition at line 1117 of file json-validator.cpp.
|
inlineoverrideprivatevirtual |
Implements anonymous_namespace{json-validator.cpp}::schema.
Definition at line 1055 of file json-validator.cpp.
References nlohmann::json_patch::add(), additionalProperties_, anonymous_namespace{json-validator.cpp}::schema::default_value(), dependencies_, nlohmann::json_schema::error_handler::error(), maxProperties_, anonymous_namespace{json-validator.cpp}::first_error_handler::message_, minProperties_, patternProperties_, properties_, propertyNames_, required_, and anonymous_namespace{json-validator.cpp}::schema::validate().
|
inlineoverrideprivatevirtual |
Implements anonymous_namespace{json-validator.cpp}::schema.
Definition at line 1055 of file json-validator.cpp.
|
private |
Definition at line 1049 of file json-validator.cpp.
Referenced by object(), and validate().
|
private |
Definition at line 1051 of file json-validator.cpp.
Referenced by object(), and validate().
|
private |
Definition at line 1041 of file json-validator.cpp.
Referenced by object(), and validate().
|
private |
Definition at line 1042 of file json-validator.cpp.
Referenced by object(), and validate().
|
private |
Definition at line 1047 of file json-validator.cpp.
Referenced by object(), and validate().
|
private |
Definition at line 1045 of file json-validator.cpp.
Referenced by object(), and validate().
Definition at line 1053 of file json-validator.cpp.
Referenced by object(), and validate().
|
private |
Definition at line 1043 of file json-validator.cpp.
Referenced by object(), and validate().