mirror of
https://github.com/vrm-c/UniVRM.git
synced 2026-05-20 09:47:56 -05:00
Fix validation configs for JsonSchema when converting to glb bytes
This commit is contained in:
parent
af1251e036
commit
66d8adc191
|
|
@ -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
|
||||
|
|
|
|||
Loading…
Reference in New Issue
Block a user