mirror of
https://github.com/vrm-c/UniVRM.git
synced 2026-08-20 01:25:45 -05:00
Fix validation configs for JsonSchema when converting to glb bytes
This commit is contained in:
@@ -503,7 +503,10 @@ namespace UniGLTF
|
||||
string json;
|
||||
if (UseUniJSONSerializer)
|
||||
{
|
||||
var c = new JsonSchemaValidationContext(this);
|
||||
var c = new JsonSchemaValidationContext(this)
|
||||
{
|
||||
EnableDiagnosisForNotRequiredFields = true,
|
||||
};
|
||||
json = JsonSchema.FromType(GetType()).Serialize(this, c);
|
||||
}
|
||||
else
|
||||
|
||||
Reference in New Issue
Block a user