From 0a09545c3b415c3bfcb708d6c4e9615a7c7c7398 Mon Sep 17 00:00:00 2001 From: Gareth Sylvester-Bradley <31761158+garethsb@users.noreply.github.com> Date: Mon, 28 Nov 2022 17:44:43 +0000 Subject: [PATCH] Fix warning with nlohmann_json/3.11.2 --- src/json-validator.cpp | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/src/json-validator.cpp b/src/json-validator.cpp index 7f34553..30a8e59 100644 --- a/src/json-validator.cpp +++ b/src/json-validator.cpp @@ -255,7 +255,7 @@ public: // not by a plain name fragment if (uri.pointer().to_string() != "") { try { - auto &subschema = file.unknown_keywords.at(uri.pointer()); // null is returned if not existing + auto &subschema = file.unknown_keywords.at(uri.pointer().to_string()); // null is returned if not existing auto s = schema::make(subschema, this, {}, {{uri}}); // A JSON Schema MUST be an object or a boolean. if (s) { // nullptr if invalid schema, e.g. null file.unknown_keywords.erase(uri.fragment());