From 202700ada0f4df9463916d58afa2ea4d144da3c9 Mon Sep 17 00:00:00 2001 From: Patrick Boettcher Date: Wed, 28 Dec 2016 13:47:59 +0100 Subject: [PATCH] code: fix indentation --- src/json-validator.cpp | 6 +++--- 1 file changed, 3 insertions(+), 3 deletions(-) diff --git a/src/json-validator.cpp b/src/json-validator.cpp index 2668ce1..98a4c72 100644 --- a/src/json-validator.cpp +++ b/src/json-validator.cpp @@ -173,7 +173,7 @@ void validate_boolean(json & /*instance*/, const json &schema, const std::string void validate_numeric(const json &schema, const std::string &name, double value) { - // multipleOf - if the rest of the division is 0 -> OK + // multipleOf - if the rest of the division is 0 -> OK const auto &multipleOf = schema.find("multipleOf"); if (multipleOf != schema.end()) { if (multipleOf.value().get() != 0.0) { @@ -686,12 +686,12 @@ void json_validator::validate_string(json &instance, const json &schema, const s throw std::invalid_argument(instance.get() + " does not match regex pattern: " + attr.value().get() + " for " + name); } - // format + // format attr = schema.find("format"); if (attr != schema.end()) { if (format_check_ == nullptr) throw std::logic_error("A format checker was not provided but a format-attribute for this string is present. " + - name + " cannot be validated for " + attr.value().get()); + name + " cannot be validated for " + attr.value().get()); format_check_(attr.value(), instance); } }