mirror of
https://git.mirrors.martin98.com/https://github.com/syoyo/tinygltf.git
synced 2025-08-03 16:30:38 +08:00
12 lines
261 B
Python
12 lines
261 B
Python
import json
|
|
from ref_resolver import RefResolver
|
|
|
|
f = open("glTF.schema.json")
|
|
j = json.loads(f.read())
|
|
|
|
# call to API resolve method
|
|
RefResolver("glTF.schema.json").resolve(j)
|
|
|
|
outfile = open("glTF.schema.resolved.json")
|
|
outfile.write(json.dumps(j, indent=2))
|