fix(codegen): Removes unused json fields (#691)

This commit is contained in:
Kamron Batman 2021-08-17 09:51:08 -07:00 committed by GitHub
parent 28335ece88
commit 9b047d9d3f
No known key found for this signature in database
GPG key ID: 4AEE18F83AFDEB23
462 changed files with 511 additions and 945 deletions

View file

@ -358,7 +358,7 @@ namespace SerializationGenerator
{
Version = version,
Type = classSymbol.ToDisplayString(),
Properties = serializableProperties
Properties = serializableProperties.Length > 0 ? serializableProperties : null
};
WriteMigration(migrationPath, newMigration, jsonSerializerOptions);