Public Member Functions | |
| array (json &sch, root_schema *root, const std::vector< nlohmann::json_uri > &uris) | |
| array (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 > | maxItems_ {false, 0} |
| std::pair< bool, size_t > | minItems_ {false, 0} |
| bool | uniqueItems_ = false |
| std::shared_ptr< schema > | items_schema_ |
| std::vector< std::shared_ptr< schema > > | items_ |
| std::shared_ptr< schema > | additionalItems_ |
| std::shared_ptr< schema > | contains_ |
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 1199 of file json-validator.cpp.
|
inline |
Definition at line 1268 of file json-validator.cpp.
References additionalItems_, contains_, items_, items_schema_, anonymous_namespace{json-validator.cpp}::schema::make(), maxItems_, minItems_, anonymous_namespace{json-validator.cpp}::schema::schema(), and uniqueItems_.
|
inline |
Definition at line 1268 of file json-validator.cpp.
|
inlineoverrideprivatevirtual |
Implements anonymous_namespace{json-validator.cpp}::schema.
Definition at line 1212 of file json-validator.cpp.
References additionalItems_, contains_, nlohmann::json_schema::error_handler::error(), items_, items_schema_, maxItems_, minItems_, uniqueItems_, and anonymous_namespace{json-validator.cpp}::schema::validate().
|
inlineoverrideprivatevirtual |
Implements anonymous_namespace{json-validator.cpp}::schema.
Definition at line 1212 of file json-validator.cpp.
Definition at line 1208 of file json-validator.cpp.
Referenced by array(), and validate().
Definition at line 1210 of file json-validator.cpp.
Referenced by array(), and validate().
|
private |
Definition at line 1207 of file json-validator.cpp.
Referenced by array(), and validate().
Definition at line 1205 of file json-validator.cpp.
Referenced by array(), and validate().
|
private |
Definition at line 1201 of file json-validator.cpp.
Referenced by array(), and validate().
|
private |
Definition at line 1202 of file json-validator.cpp.
Referenced by array(), and validate().
|
private |
Definition at line 1203 of file json-validator.cpp.
Referenced by array(), and validate().