We read every piece of feedback, and take your input very seriously.
To see all available qualifiers, see our documentation.
angular-cli.json
1 parent a8f498b commit 204d312Copy full SHA for 204d312
1 file changed
packages/@ngtools/json-schema/src/serializers/json.ts
@@ -110,6 +110,11 @@ export class JsonSerializer implements Serializer {
110
111
this._willOutputValue();
112
113
+ if (node.items.length === 0) {
114
+ this._writer('[]');
115
+ return;
116
+ }
117
+
118
this._writer('[');
119
this._state.push({ empty: true, type: 'array' });
120
for (let i = 0; i < node.items.length; i++) {
0 commit comments