From 5c21a63ff04a031e89bcc750d9c40a0ba2f69cfc Mon Sep 17 00:00:00 2001 From: Daniel Parker Date: Thu, 21 Dec 2023 20:27:22 -0500 Subject: [PATCH] jsonschema draft2019-03 --- include/jsoncons_ext/jsonschema/draft7/schema_parser_impl.hpp | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/include/jsoncons_ext/jsonschema/draft7/schema_parser_impl.hpp b/include/jsoncons_ext/jsonschema/draft7/schema_parser_impl.hpp index 6c267ba71..c8ef8a743 100644 --- a/include/jsoncons_ext/jsonschema/draft7/schema_parser_impl.hpp +++ b/include/jsoncons_ext/jsonschema/draft7/schema_parser_impl.hpp @@ -1059,7 +1059,7 @@ namespace draft7 { if (it != sch.object_range().end()) { auto sv = it->value().as_string_view(); - if (sv.find("json-schema.org/draft-07/schema#") != string_view::npos) + if (sv.find("json-schema.org/draft-07/schema#") == string_view::npos) { std::string message("Unsupported schema version "); message.append(sv.data(), sv.size());