Commit 35e5d7f
committed
Fix profile artifact validation: add missing field allowlist entries (v3.1.6)
Fixes #46 — "profile contains unknown field(s): inputStack"
The hardware profile artifact validator (hardwareProfileArtifact.ts) has a strict
field allowlist for profile persistence. Four fields added in recent versions were
missing from this allowlist: audioCodec, nicChipset, wifiChipset, inputStack.
When the scanner produced a profile with these fields, the artifact normalizer
threw "profile contains unknown field(s): inputStack", causing the scan-hardware
IPC handler to fail. This happened on EVERY scan, not just edge cases.
Fix: Add all four missing fields to the assertNoUnknownKeys allowlist.1 parent 0bc9df8 commit 35e5d7f
2 files changed
Lines changed: 5 additions & 1 deletion
| Original file line number | Diff line number | Diff line change | |
|---|---|---|---|
| |||
139 | 139 | | |
140 | 140 | | |
141 | 141 | | |
| 142 | + | |
142 | 143 | | |
| 144 | + | |
| 145 | + | |
| 146 | + | |
143 | 147 | | |
144 | 148 | | |
145 | 149 | | |
| |||
| Original file line number | Diff line number | Diff line change | |
|---|---|---|---|
| |||
1 | 1 | | |
2 | 2 | | |
3 | 3 | | |
4 | | - | |
| 4 | + | |
5 | 5 | | |
6 | 6 | | |
7 | 7 | | |
| |||
0 commit comments