Public Member Functions | |
| string (json &sch, root_schema *root) | |
| string (json &sch, root_schema *root) | |
| 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 | |
| std::size_t | utf8_length (const std::string &s) const |
| void | validate (const json::json_pointer &ptr, const json &instance, json_patch &, error_handler &e) const override |
| std::size_t | utf8_length (const std::string &s) const |
| void | validate (const json::json_pointer &ptr, const json &instance, json_patch &, error_handler &e) const override |
Private Attributes | |
| std::pair< bool, size_t > | maxLength_ {false, 0} |
| std::pair< bool, size_t > | minLength_ {false, 0} |
| std::pair< bool, std::regex > | pattern_ {false, std::regex()} |
| std::string | patternString_ |
| std::pair< bool, std::string > | format_ |
| std::tuple< bool, std::string, std::string > | content_ {false, "", ""} |
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 739 of file json-validator.cpp.
|
inline |
Definition at line 817 of file json-validator.cpp.
References content_, nlohmann::json_schema::root_schema::content_check(), format_, nlohmann::json_schema::root_schema::format_check(), maxLength_, minLength_, pattern_, patternString_, anonymous_namespace{json-validator.cpp}::schema::root_, and anonymous_namespace{json-validator.cpp}::schema::schema().
|
inline |
Definition at line 817 of file json-validator.cpp.
|
inlineprivate |
Definition at line 752 of file json-validator.cpp.
Referenced by validate().
|
inlineprivate |
Definition at line 752 of file json-validator.cpp.
|
inlineoverrideprivatevirtual |
Implements anonymous_namespace{json-validator.cpp}::schema.
Definition at line 761 of file json-validator.cpp.
References content_, nlohmann::json_schema::root_schema::content_check(), nlohmann::json_schema::error_handler::error(), format_, nlohmann::json_schema::root_schema::format_check(), maxLength_, minLength_, pattern_, patternString_, anonymous_namespace{json-validator.cpp}::schema::root_, and utf8_length().
|
inlineoverrideprivatevirtual |
Implements anonymous_namespace{json-validator.cpp}::schema.
Definition at line 761 of file json-validator.cpp.
|
private |
Definition at line 750 of file json-validator.cpp.
Referenced by string(), and validate().
|
private |
Definition at line 749 of file json-validator.cpp.
Referenced by string(), and validate().
|
private |
Definition at line 741 of file json-validator.cpp.
Referenced by string(), and validate().
|
private |
Definition at line 742 of file json-validator.cpp.
Referenced by string(), and validate().
|
private |
Definition at line 745 of file json-validator.cpp.
Referenced by string(), and validate().
|
private |
Definition at line 746 of file json-validator.cpp.
Referenced by string(), and validate().