From ceddfe19d89efdc0e10ecc459ed10d556d46b089 Mon Sep 17 00:00:00 2001 From: Malcolm Tyrrell Date: Wed, 6 Oct 2021 15:49:49 +0100 Subject: [PATCH] Add comment with link to schema repo. --- code/AssetLib/glTF2/glTF2Asset.inl | 1 + 1 file changed, 1 insertion(+) diff --git a/code/AssetLib/glTF2/glTF2Asset.inl b/code/AssetLib/glTF2/glTF2Asset.inl index b531b5a98..1dec86c0e 100644 --- a/code/AssetLib/glTF2/glTF2Asset.inl +++ b/code/AssetLib/glTF2/glTF2Asset.inl @@ -1839,6 +1839,7 @@ inline void Asset::Load(const std::string &pFile, bool isBinary) // If so, use it to validate the document. if (mSchemaDocumentProvider) { if (const rapidjson::SchemaDocument *gltfSchema = mSchemaDocumentProvider->GetRemoteDocument("glTF.schema.json", 16)) { + // The schemas are found here: https://github.com/KhronosGroup/glTF/tree/main/specification/2.0/schema rapidjson::SchemaValidator validator(*gltfSchema); if (!doc.Accept(validator)) { rapidjson::StringBuffer pathBuffer;