Skip to content

Commit

Permalink
fix(set): output value for additional props
Browse files Browse the repository at this point in the history
  • Loading branch information
filipesilva committed Oct 9, 2016
1 parent de3c275 commit acf7897
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 acf7897

Please sign in to comment.