Skip to content
This repository was archived by the owner on Jul 21, 2022. It is now read-only.

Commit 9120012

Browse files
filipesilvaBrocco
authored andcommitted
fix(set): output value for additional props
Fix angular#1900 Close angular#2614
1 parent 9946c64 commit 9120012

File tree

1 file changed

+2
-1
lines changed

1 file changed

+2
-1
lines changed

packages/angular-cli/models/json-schema/schema-tree.ts

+2-1
Original file line numberDiff line numberDiff line change
@@ -209,7 +209,8 @@ export class ObjectSchemaTreeNode extends NonLeafSchemaTreeNode<{[key: string]:
209209
serializer.property(key, () => this._children[key].serialize(serializer, value[key]));
210210
}
211211
} else if (this._schema['additionalProperties']) {
212-
serializer.property(key, () => this._children[key].serialize(serializer, value[key]));
212+
// Fallback to direct value output for additional properties
213+
serializer.property(key, () => serializer.outputValue(value[key]));
213214
}
214215
}
215216
});

0 commit comments

Comments
 (0)