TinyGLTF validator based on Modern C++ JSON schema validator https://github.com/pboettch/json-schema-validator
Experimental. W.I.P.
$ mkdir build $ cd build $ cmake .. $ make
First clone glTF repo somewhere to get glTF schema JSON files.
$ cd ~/work # Choose your favorite dir. $ git clone https://github.com/KhronosGroup/glTF $ export GLTF_DIR=~/work/glTF
Then, specify the directory of glTF 2.0 schema JSONs and a glTF file.
$ ./tinygltf-validator $GLTF_DIR/specification/2.0/schema/ ../../models/Cube/Cube.gltf