|
|
@@ -54,14 +54,14 @@ private:
|
|
|
void annotate(ValidationResult && result) {
|
|
|
for (auto const & [where, errors] : result.annotations_) {
|
|
|
for (auto const & [schema_path, message] : errors) {
|
|
|
- annotations_[where][schema_path] += message;
|
|
|
+ annotations_[where].emplace(schema_path, message);
|
|
|
}
|
|
|
}
|
|
|
}
|
|
|
|
|
|
void annotate(detail::Pointer const & where, detail::Pointer const & schema_path,
|
|
|
std::string const & message) {
|
|
|
- annotations_[where][schema_path] += message;
|
|
|
+ annotations_[where].emplace(schema_path, message);
|
|
|
}
|
|
|
};
|
|
|
}
|