|
|
@@ -64,17 +64,17 @@ public:
|
|
|
adapter::Type const type = document_.type();
|
|
|
for (adapter::Type const accept : cons.types) {
|
|
|
if (type == accept) {
|
|
|
- return note(Status::Accept, "type ", type, " is one of [", cons.types, "]");
|
|
|
+ return note(Status::Accept, "type (", type, ") is one of [", cons.types, "]");
|
|
|
}
|
|
|
if (accept == adapter::Type::Number && type == adapter::Type::Integer) {
|
|
|
- return note(Status::Accept, "type ", type, " is one of [", cons.types, "]");
|
|
|
+ return note(Status::Accept, "type (", type, ") is one of [", cons.types, "]");
|
|
|
}
|
|
|
if (accept == adapter::Type::Integer && type == adapter::Type::Number &&
|
|
|
detail::is_json_integer(document_.as_number())) {
|
|
|
- return note(Status::Accept, "type ", type, " is one of [", cons.types, "]");
|
|
|
+ return note(Status::Accept, "type (", type, ") is one of [", cons.types, "]");
|
|
|
}
|
|
|
}
|
|
|
- return note(Status::Reject, "type ", type, " is not one of [", cons.types, "]");
|
|
|
+ return note(Status::Reject, "type (", type, ") is not one of [", cons.types, "]");
|
|
|
}
|
|
|
|
|
|
Status visit(constraint::ExtensionConstraint const & cons) const {
|