Skip to content

Commit

Permalink
fix(set): output value for additional props
Browse files Browse the repository at this point in the history
Fix #1900
Close #2614
  • Loading branch information
filipesilva committed Oct 10, 2016
1 parent ec0cdb5 commit f7bf0aa
Showing 1 changed file with 2 additions and 1 deletion.
3 changes: 2 additions & 1 deletion packages/angular-cli/models/json-schema/schema-tree.ts
Original file line number Diff line number Diff line change
Expand Up @@ -209,7 +209,8 @@ export class ObjectSchemaTreeNode extends NonLeafSchemaTreeNode<{[key: string]:
serializer.property(key, () => this._children[key].serialize(serializer, value[key]));
}
} else if (this._schema['additionalProperties']) {
serializer.property(key, () => this._children[key].serialize(serializer, value[key]));
// Fallback to direct value output for additional properties
serializer.property(key, () => serializer.outputValue(value[key]));
}
}
});
Expand Down

0 comments on commit f7bf0aa

Please sign in to comment.