fix test for read only values

This commit is contained in:
opsocket 2022-08-19 19:37:37 -04:00
parent 72256c3368
commit d224111591

View File

@ -12,17 +12,17 @@ static const json read_only_schema = R"({
"readOnly": true "readOnly": true
} }
} }
})"; })"_json;
int main() { int main() {
json_validator validator(read_only_schema); json_validator validator(read_only_schema);
try { try {
validator.validate(R"({ validator.validate(R"({
"debug": true "debug": true
})"); })"_json);
} catch (const std::exception&e ) { } catch (const std::exception&e ) {
return EXIT_SUCCESS; return EXIT_SUCCESS;
} }
return EXIT_FAILURE; return EXIT_FAILURE;
} }