Skip to content

Commit

Permalink
fixed schema for #639
Browse files Browse the repository at this point in the history
  • Loading branch information
lexaknyazev committed Jul 7, 2016
1 parent 3b6eb6a commit b180166
Show file tree
Hide file tree
Showing 3 changed files with 10 additions and 10 deletions.
10 changes: 5 additions & 5 deletions specification/2.0/schema/glTF.schema.json
Original file line number Diff line number Diff line change
Expand Up @@ -22,7 +22,7 @@
"additionalProperties" : {
"$ref" : "accessor.schema.json"
},
"default" : {},
"required" : true,
"gltf_detailedDescription" : "A dictionary object of accessors. The name of each accessor is an ID in the global glTF namespace that is used to reference the accessor. An accessor is a typed view into a bufferView."
},
"animations" : {
Expand All @@ -39,7 +39,7 @@
"asset" : {
"extends" : { "$ref" : "asset.schema.json" },
"description" : "Metadata about the glTF asset.",
"default" : {}
"required" : true
},
"buffers" : {
"type" : "object",
Expand All @@ -49,7 +49,7 @@
"additionalProperties" : {
"$ref" : "buffer.schema.json"
},
"default" : {},
"required" : true,
"gltf_detailedDescription" : "A dictionary object of buffers. The name of each buffer is an ID in the global glTF namespace that is used to reference the buffer. A buffer points to binary geometry, animation, or skins."
},
"bufferViews" : {
Expand All @@ -60,7 +60,7 @@
"additionalProperties" : {
"$ref" : "bufferView.schema.json"
},
"default" : {},
"required" : true,
"gltf_detailedDescription" : "A dictionary object of bufferViews. The name of each bufferView is an ID in the global glTF namespace that is used to reference the bufferView. A bufferView is a view into a buffer generally representing a subset of the buffer."
},
"cameras" : {
Expand Down Expand Up @@ -104,7 +104,7 @@
"additionalProperties" : {
"$ref" : "mesh.schema.json"
},
"default" : {},
"required" : true,
"gltf_detailedDescription" : "A dictionary object of meshes. The name of each mesh is an ID in the global glTF namespace that is used to reference the mesh. A mesh is a set of primitives to be rendered."
},
"nodes" : {
Expand Down
7 changes: 3 additions & 4 deletions specification/2.0/schema/mesh.primitive.schema.json
Original file line number Diff line number Diff line change
Expand Up @@ -13,17 +13,16 @@
"additionalProperties" : {
"$ref" : "mesh.primitive.attribute.schema.json"
},
"default" : {}
"required" : true
},
"indices" : {
"extends" : { "$ref" : "glTFid.schema.json" },
"description" : "The ID of the accessor that contains the indices.",
"gltf_detailedDescription" : "The ID of the accessor that contains the indices. When this is not defined, the primitives should be rendered without indices using `drawArrays()`. When defined, the accessor must contain indices: the bufferView referenced by the accessor must have a target equal to 34963 (ELEMENT_ARRAY_BUFFER); a byteStride that is tightly packed, i.e., 0 or the byte size of componentType in bytes; componentType must be 5121 (UNSIGNED_BYTE) or 5123 (UNSIGNED_SHORT); and type must be \"SCALAR\"."
"gltf_detailedDescription" : "The ID of the accessor that contains the indices. When this is not defined, the primitives should be rendered without indices using `drawArrays()`. When defined, the accessor must contain indices: the `bufferView` referenced by the accessor must have a `target` equal to 34963 (ELEMENT_ARRAY_BUFFER); a `byteStride` that is tightly packed, i.e., 0 or the byte size of `componentType` in bytes; `componentType` must be 5121 (UNSIGNED_BYTE), 5123 (UNSIGNED_SHORT) or 5125 (UNSIGNED_INT), the latter is only allowed when `OES_element_index_uint` extension is used; `type` must be `\"SCALAR\"`."
},
"material" : {
"extends" : { "$ref" : "glTFid.schema.json" },
"description" : "The ID of the material to apply to this primitive when rendering.",
"required" : true
"description" : "The ID of the material to apply to this primitive when rendering."
},
"mode" : {
"type" : "integer",
Expand Down
3 changes: 2 additions & 1 deletion specification/2.0/schema/mesh.schema.json
Original file line number Diff line number Diff line change
Expand Up @@ -11,7 +11,8 @@
"items" : {
"$ref" : "mesh.primitive.schema.json"
},
"default" : []
"required" : true,
"minItems": 1
}
},
"additionalProperties" : false
Expand Down

0 comments on commit b180166

Please sign in to comment.