Skip to content

Commit acf7897

Browse files
committed
fix(set): output value for additional props
Fix angular#1900
1 parent de3c275 commit acf7897

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)