// // Copyright (c) 2019- yutopp (yutopp@gmail.com) // // Distributed under the Boost Software License, Version 1.0. (See accompanying // file LICENSE_1_0.txt or copy at https://www.boost.org/LICENSE_1_0.txt) // using System; using VJson; using VJson.Schema; // Reference: https://github.com/KhronosGroup/glTF/blob/master/specification/2.0/schema/* namespace VGltf.Types { [JsonSchema(Id = "buffer.schema.json")] public sealed class Buffer : GltfChildOfRootProperty { [JsonField(Name = "uri"), JsonFieldIgnorable] // TODO: "format": "uriref" public string Uri; [JsonField(Name = "byteLength")] [JsonSchema(Minimum = 1), JsonSchemaRequired] public int ByteLength; } }