diff --git a/packages/angular_devkit/core/src/json/schema/registry.ts b/packages/angular_devkit/core/src/json/schema/registry.ts index 82e20bdbbe3f..c16fb5f1b9d5 100644 --- a/packages/angular_devkit/core/src/json/schema/registry.ts +++ b/packages/angular_devkit/core/src/json/schema/registry.ts @@ -589,7 +589,12 @@ export class CoreSchemaRegistry implements SchemaRegistry { raw: schema, items, multiselect, - default: typeof parentSchema.default == 'object' ? undefined : parentSchema.default, + default: + typeof parentSchema.default == 'object' && + parentSchema.default !== null && + !Array.isArray(parentSchema.default) + ? undefined + : parentSchema.default as string[], async validator(data: JsonValue) { try { return await it.self.validate(parentSchema, data);