1#include "nlohmann/json-schema.hpp"
10 }
catch (
const std::exception &ex) {
27 exc_count +=
should_throw({{
"type",
"number"}, {
"multipleOf", 0.001}}
, 0.3 - 0.2005
);
28 exc_count +=
should_throw({{
"type",
"number"}, {
"multipleOf", 1000.02}}
, (1000.03 - 0.02) * 15.0
);
29 exc_count +=
should_throw({{
"type",
"number"}, {
"multipleOf", 100000.11}}
, 9000009
);
json_validator(json &&, schema_loader=nullptr, format_checker=nullptr, content_checker=nullptr)
json_validator(const json &, schema_loader=nullptr, format_checker=nullptr, content_checker=nullptr)
json validate(const json &) const
int should_throw(const nlohmann::json &schema, T value)