Skip to content

Commit

Permalink
skip validation with no schema
Browse files Browse the repository at this point in the history
  • Loading branch information
abeaucha committed Oct 2, 2024
1 parent 0b84be5 commit 341dabf
Showing 1 changed file with 5 additions and 0 deletions.
5 changes: 5 additions & 0 deletions six/modules/c++/six/source/XMLControl.cpp
Original file line number Diff line number Diff line change
Expand Up @@ -185,6 +185,11 @@ static void validate_(const xml::lite::Element& rootElement,
const std::string& spec, const std::string& version,
const std::vector<coda_oss::filesystem::path>& foundSchemas, logging::Logger& log)
{
if (foundSchemas.size() < 1)
{
return; // can't validate without a schema
}

xml::lite::Uri uri;
rootElement.getUri(uri);

Expand Down

0 comments on commit 341dabf

Please sign in to comment.