Fix indentation (TAB instead of spaces)
This commit is contained in:
parent
a23f87ee35
commit
0b21596e46
@ -93,7 +93,7 @@ int main(int argc, char *argv[])
|
|||||||
json document;
|
json document;
|
||||||
|
|
||||||
try {
|
try {
|
||||||
std::cin >> document;
|
std::cin >> document;
|
||||||
validator.validate(document);
|
validator.validate(document);
|
||||||
} catch (std::exception &e) {
|
} catch (std::exception &e) {
|
||||||
std::cerr << "schema validation failed\n";
|
std::cerr << "schema validation failed\n";
|
||||||
|
|||||||
@ -344,7 +344,7 @@ void json_validator::validate(const json &instance, const json &schema_, const s
|
|||||||
try {
|
try {
|
||||||
validate(instance, attr.value(), name);
|
validate(instance, attr.value(), name);
|
||||||
ok = false;
|
ok = false;
|
||||||
} catch (std::exception &) {
|
} catch (std::exception &) {
|
||||||
ok = true;
|
ok = true;
|
||||||
}
|
}
|
||||||
if (!ok)
|
if (!ok)
|
||||||
|
|||||||
Loading…
Reference in New Issue
Block a user