✅ fix test for read only values
This commit is contained in:
parent
72256c3368
commit
d224111591
@ -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;
|
||||||
}
|
}
|
||||||
|
|||||||
Loading…
Reference in New Issue
Block a user