forked from KhronosGroup/glTF
-
Notifications
You must be signed in to change notification settings - Fork 0
/
Copy pathbuffer.schema.json
28 lines (28 loc) · 997 Bytes
/
buffer.schema.json
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
18
19
20
21
22
23
24
25
26
27
28
{
"$schema" : "http://json-schema.org/draft-03/schema",
"title" : "buffer",
"type" : "object",
"description" : "Buffers contain geometry, animation, or skins.",
"extends" : { "$ref" : "glTFChildOfRootProperty.schema.json" },
"properties" : {
"uri" : {
"type" : "string",
"description" : "The uri of the buffer. Relative paths are relative to the .json file. Instead of referencing an external file, the uri can also be a data-uri.",
"format" : "uri",
"required" : true
},
"byteLength" : {
"type" : "integer",
"description" : "The length of the buffer in bytes.",
"minimum" : 0,
"default" : 0
},
"type" : {
"type" : "string",
"description" : "XMLHttpRequest responseType.",
"enum" : ["arraybuffer", "text"],
"default" : "arraybuffer"
}
},
"additionalProperties" : false
}