Schema validation failed: Data path "" should NOT have additional properties
- 主要言語
- TypeScript
- スター
- 27k
- フォーク
- 11.8k
- 平均マージ
- 14時間 23分
- マージ済み PR(30日)
- 162
説明
### Bug Report or Feature Request (mark with an `x`)
```
- [x] bug report -> please search issues before submitting
- [ ] feature request
```
### Area
```
- [ ] devkit
- [x] schematics
```
### Versions
```
Angular CLI: 6.0.8
Node: 8.11.2
OS: win32 x64
Angular: 6.0.7
... animations, common, compiler, compiler-cli, core, forms
... http, language-service, platform-browser
... platform-browser-dynamic, router
Package Version
-----------------------------------------------------------
@angular-devkit/architect 0.6.8
@angular-devkit/build-angular 0.6.8
@angular-devkit/build-optimizer 0.6.8
@angular-devkit/core 0.6.8
@angular-devkit/schematics 0.6.8
@angular/cli 6.0.8
@ngtools/webpack 6.0.8
@schematics/angular 0.6.8
@schematics/update 0.6.8
rxjs 6.2.1
typescript 2.7.2
webpack 4.8.3
```
### Repro steps
1. Add `projects/architect//options/invalid` options to `options` in `angular.json` eg
```
"build": {
"builder": "@angular-devkit/build-angular:browser",
"options": {
"invalid": "value",
...
}
}
```
2. Run `ng build`
### Actual functionality
```
Schema validation failed with the following errors:
Data path "" should NOT have additional properties(invalid).
```
### Desired functionality
```
Schema validation failed with the following errors:
Data path "path/to/invalid/option" should NOT have additional properties(invalid).
```
コントリビューションガイド
調査の方向性
まず、再現手順で示されている `angular.json` のビルドオプションについて、`ng build` 中のスキーマ検証を追跡します。無効なオプションがどこで報告されるかを確認し、関連するオプションパスが含まれるように診断を更新してから、出力が期待される機能と一致することを検証します。
索引モデルが issue の本文から書いたものです。
評価
- 技術スタック
- angular, typescript
- 領域
- build-system, cli
- issue の種類
- バグ
- 難易度
- 3/5
- 見積もり時間
- 1〜2日
- 活発さ
- 停滞
- 明瞭さ
- おおむね明確
- 初心者へのやさしさ
- 35/100