Merge pull request #821 from quicktype/fix-all-properties-optional
Fix making all properties optional. Fixes #820
This commit is contained in:
Коммит
8a0df28496
|
@ -330,6 +330,7 @@ export class TypeBuilder {
|
|||
properties: OrderedMap<string, ClassProperty>,
|
||||
forwardingRef?: TypeRef
|
||||
): TypeRef {
|
||||
properties = this.modifyPropertiesIfNecessary(properties);
|
||||
return this.getOrAddType(
|
||||
classTypeIdentity(properties),
|
||||
tr => new ClassType(tr, false, properties),
|
||||
|
|
Загрузка…
Ссылка в новой задаче