Which JSON Schemas Validate a glTF File?

This article outlines the specific JSON schemas that validate the top-level structure of a standard glTF (GL Transmission Format) 2.0 asset. It identifies the root schema definitions provided by the Khronos Group, breaks down the core object arrays defined at the document root, and explains how validation tools utilize these draft schemas to ensure asset conformance.

The Root Schema: glTF.schema.json

In the official glTF specification maintained by the Khronos Group, validation begins at a single entry point: glTF.schema.json. This schema targets the document root of any .gltf manifest. It acts as the master orchestrator, importing dozens of sub-schemas via JSON Schema references ($ref) to validate every individual component.

The schema complies with JSON Schema Draft-04 or Draft-07 (depending on the exact minor release version of the schema repository) and enforces that the root of every valid glTF file must be a JSON object containing defined top-level properties.

Primary Top-Level Property Schemas

The root glTF.schema.json defines constraints for several high-level properties, each governed by its own dedicated schema file:

Extensions and Custom Metadata

Two additional schemas govern custom data at the root level:

Standard validation suites, such as the Khronos glTF Validator, compile these schemas alongside semantic validation passes to ensure that indices point to actual entries within the top-level arrays.