Rename schemaVersion to specVersion

This commit is contained in:
yutopp
2019-02-01 20:51:03 +09:00
parent 6c2da9704a
commit 48f8f602f5
4 changed files with 5 additions and 5 deletions

View File

@@ -635,7 +635,7 @@ namespace VRM
EnableDiagnosisForNotRequiredFields = true,
};
var json2 = JsonSchema.FromType<glTF_VRM_extensions>().Serialize(model, c);
Assert.AreEqual(@"{""exporterVersion"":""UniVRM-0.50"",""schemaVersion"":""0.0""}",json2);
Assert.AreEqual(@"{""exporterVersion"":""UniVRM-0.50"",""specVersion"":""0.0""}",json2);
}
// TODO: Move to another suitable location

View File

@@ -37,8 +37,8 @@ VRM extension is for 3d humanoid avatars (and models) in VR applications.
[JsonSchema(Description = @"Version of exporter that vrm created. " + VRMVersion.VRM_VERSION)]
public string exporterVersion = "UniVRM-" + VRMVersion.VERSION;
[JsonSchema(Description = @"Version of JSON Schema for VRM")]
public string schemaVersion = VRMSchemaVersion.Version;
[JsonSchema(Description = @"The VRM specification version that this extension uses")]
public string specVersion = VRMSpecVersion.Version;
public glTF_VRM_Meta meta = new glTF_VRM_Meta();
public glTF_VRM_Humanoid humanoid = new glTF_VRM_Humanoid();
@@ -50,7 +50,7 @@ VRM extension is for 3d humanoid avatars (and models) in VR applications.
protected override void SerializeMembers(GLTFJsonFormatter f)
{
f.KeyValue(() => exporterVersion);
f.KeyValue(() => schemaVersion);
f.KeyValue(() => specVersion);
f.Key("meta"); f.GLTFValue(meta);
f.Key("humanoid"); f.GLTFValue(humanoid);
f.Key("firstPerson"); f.GLTFValue(firstPerson);

View File

@@ -2,7 +2,7 @@ using System;
namespace VRM
{
public class VRMSchemaVersion
public class VRMSpecVersion
{
public const int Major = 0;
public const int Minor = 0;