errors and warnings / manifest / E4002
E4002 error
Manifest does not match the schema (unknown key, wrong type)
- area
- manifest (x4xxx)
- fails the build
- yes
The manifest is valid JSON but does not match the schema: an unknown key
(often a typo, so the help suggests the closest key), a value of the wrong
type, a missing package section, or a value the schema does not allow, such
as a SavedVariable that is no Lua identifier, a TOC directive in toc-extra
that wowlua writes itself, a flavor-overrides key for a flavor the
package does not target, a test.screen.uiScale off the game's UI Scale
slider (0.65 to 1.15 in steps of 0.01), a coverage minimum outside 0 to 100,
or a stdlib.log.history-size of 0. Unknown keys are errors so that a misspelled setting
is never ignored without a word.
Fix the key or the value the message points at. If the key belongs to a newer
wowlua, check package.wowlua and your compiler's version (E4300).
Example
{ "package": { "name": "playground", "version": "0.1.0", "wowlua": "^0.13" }, "addon": { "titel": "Playground" }, "flavors": { "camelot": {} }}{ "package": { "name": "playground", "version": "0.1.0", "wowlua": "^0.13" }, "addon": { "title": "Playground" }, "flavors": { "camelot": {} }}The compiler reports it like this:
error[E4002]: unknown key `titel` in `addon` ┌─ wowlua.json:8:9 │ 8 │ "titel": "Playground" │ ^^^^^^^ unknown key │ = help: did you mean `title`?
Related codes
| code | message |
|---|---|
| E4001 | Manifest is not valid JSON |
| E4300 | Running compiler does not satisfy package.wowlua (checked before schema validation) |
Offline
$ wowlua explain E4002 E4002 (error): Manifest does not match the schema (unknown key, wrong type)