From 2f8ab748eb3ff0a9d4bf1a58353ef58377669828 Mon Sep 17 00:00:00 2001 From: abeaucha Date: Mon, 30 Sep 2024 20:05:58 -0400 Subject: [PATCH] skip validation with no schema --- six/modules/c++/six/source/XMLControl.cpp | 5 +++++ 1 file changed, 5 insertions(+) diff --git a/six/modules/c++/six/source/XMLControl.cpp b/six/modules/c++/six/source/XMLControl.cpp index ba3868524..daa944b0f 100644 --- a/six/modules/c++/six/source/XMLControl.cpp +++ b/six/modules/c++/six/source/XMLControl.cpp @@ -185,6 +185,11 @@ static void validate_(const xml::lite::Element& rootElement, const std::string& spec, const std::string& version, const std::vector& foundSchemas, logging::Logger& log) { + if (foundSchemas.size() < 1) + { + return; // can't validate without a schema + } + xml::lite::Uri uri; rootElement.getUri(uri);