|
|
@@ -2,7 +2,6 @@
|
|
|
|
|
|
#include <tuple>
|
|
|
#include <type_traits>
|
|
|
-#include <unordered_map>
|
|
|
#include <vector>
|
|
|
|
|
|
#include <jvalidate/compat/enumerate.h>
|
|
|
@@ -113,7 +112,7 @@ public:
|
|
|
return document.equals(frozen, cfg_.strict_equality);
|
|
|
};
|
|
|
if (cons.value->apply(is_equal)) {
|
|
|
- return result(Status::Accept);
|
|
|
+ return result(Status::Accept, "matches value");
|
|
|
}
|
|
|
return result(Status::Reject, cons.value, " was expected");
|
|
|
}
|
|
|
@@ -628,6 +627,10 @@ public:
|
|
|
rval = validate_subschema(*ref, document, "$ref");
|
|
|
}
|
|
|
|
|
|
+ if (result_ && !schema_->description().empty()) {
|
|
|
+ result_->annotate(where_, schema_path_, "description", schema_->description());
|
|
|
+ }
|
|
|
+
|
|
|
detail::Pointer const current_schema = schema_path_;
|
|
|
for (auto const & [key, p_constraint] : schema_->constraints()) {
|
|
|
BREAK_EARLY_IF_NO_RESULT_TREE();
|