Public Member Functions | |
| numeric (const json &sch, root_schema *root, std::set< std::string > &kw) | |
| numeric (const json &sch, root_schema *root, std::set< std::string > &kw) | |
| 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 | |
| bool | violates_multiple_of (T x) const |
| void | validate (const json::json_pointer &ptr, const json &instance, json_patch &, error_handler &e) const override |
| bool | violates_multiple_of (T x) const |
| void | validate (const json::json_pointer &ptr, const json &instance, json_patch &, error_handler &e) const override |
Private Attributes | |
| std::pair< bool, T > | maximum_ {false, 0} |
| std::pair< bool, T > | minimum_ {false, 0} |
| bool | exclusiveMaximum_ = false |
| bool | exclusiveMinimum_ = false |
| std::pair< bool, json::number_float_t > | multipleOf_ {false, 0} |
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 885 of file json-validator.cpp.
|
inline |
Definition at line 941 of file json-validator.cpp.
References exclusiveMaximum_, exclusiveMinimum_, maximum_, minimum_, and multipleOf_.
|
inline |
Definition at line 941 of file json-validator.cpp.
|
inlineoverrideprivatevirtual |
Implements anonymous_namespace{json-validator.cpp}::schema.
Definition at line 908 of file json-validator.cpp.
References nlohmann::json_schema::error_handler::error(), exclusiveMaximum_, exclusiveMinimum_, maximum_, minimum_, multipleOf_, and violates_multiple_of().
|
inlineoverrideprivatevirtual |
Implements anonymous_namespace{json-validator.cpp}::schema.
Definition at line 908 of file json-validator.cpp.
|
inlineprivate |
Definition at line 896 of file json-validator.cpp.
References multipleOf_.
Referenced by validate().
|
inlineprivate |
Definition at line 896 of file json-validator.cpp.
|
private |
Definition at line 890 of file json-validator.cpp.
Referenced by numeric(), and validate().
|
private |
Definition at line 891 of file json-validator.cpp.
Referenced by numeric(), and validate().
|
private |
Definition at line 887 of file json-validator.cpp.
Referenced by numeric(), and validate().
|
private |
Definition at line 888 of file json-validator.cpp.
Referenced by numeric(), and validate().
|
private |
Definition at line 893 of file json-validator.cpp.
Referenced by numeric(), validate(), and violates_multiple_of().