Add comment with link to schema repo.

pull/4111/head
Malcolm Tyrrell 2021-10-06 15:49:49 +01:00
parent 7788c1a04e
commit ceddfe19d8
1 changed files with 1 additions and 0 deletions

View File

@ -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;