Summary: Before this change you would get an error like:
"Expected to get greater than or equal to1 for value 0"
Now it add in the space correctly:
"Expected to get greater than or equal to 1 for value 0"
Reviewed By: @snarkmaster
Differential Revision:
D2288454
if (type_ == Type::MIN) {
if (exclusive_) {
if (v <= s) {
if (type_ == Type::MIN) {
if (exclusive_) {
if (v <= s) {
- return makeError("greater than", schema_, value);
+ return makeError("greater than ", schema_, value);
- return makeError("greater than or equal to", schema_, value);
+ return makeError("greater than or equal to ", schema_, value);
}
}
} else if (type_ == Type::MAX) {
if (exclusive_) {
if (v >= s) {
}
}
} else if (type_ == Type::MAX) {
if (exclusive_) {
if (v >= s) {
- return makeError("less than", schema_, value);
+ return makeError("less than ", schema_, value);
- return makeError("less than or equal to", schema_, value);
+ return makeError("less than or equal to ", schema_, value);
if (value.isObject()) {
for (const auto& prop : properties_) {
if (!value.get_ptr(prop)) {
if (value.isObject()) {
for (const auto& prop : properties_) {
if (!value.get_ptr(prop)) {
- return makeError("to have property", prop, value);
+ return makeError("property ", prop, value);
if (value.count(pair.first)) {
for (const auto& prop : pair.second) {
if (!value.count(prop)) {
if (value.count(pair.first)) {
for (const auto& prop : pair.second) {
if (!value.count(prop)) {
- return makeError("property", prop, value);
+ return makeError("property ", prop, value);