|
|
@@ -4,6 +4,7 @@
|
|
|
#include <map>
|
|
|
#include <set>
|
|
|
#include <unordered_map>
|
|
|
+#include <unordered_set>
|
|
|
|
|
|
#include <jvalidate/detail/anchor.h>
|
|
|
#include <jvalidate/detail/dynamic_reference_context.h>
|
|
|
@@ -19,7 +20,6 @@
|
|
|
#include <jvalidate/enum.h>
|
|
|
#include <jvalidate/forward.h>
|
|
|
#include <jvalidate/uri.h>
|
|
|
-#include <unordered_set>
|
|
|
|
|
|
namespace jvalidate::detail {
|
|
|
template <Adapter A> class ReferenceManager {
|
|
|
@@ -75,7 +75,8 @@ public:
|
|
|
EXPECT_M(external->type() == adapter::Type::Object, "meta-schema must be an object");
|
|
|
|
|
|
auto metaschema = external->as_object();
|
|
|
- EXPECT_M(metaschema.contains("$schema"), "meta-schema must reference an");
|
|
|
+ EXPECT_M(metaschema.contains("$schema"),
|
|
|
+ "user-defined meta-schema must reference a base schema");
|
|
|
|
|
|
// Initialize first to prevent recursion
|
|
|
Vocabulary<A> & parent = user_vocabularies_[schema];
|