{"record":{"id":"3997ba6af8f3d25f","repo":"jdx/mise","slug":"unknown-dotfile-key-key-for-target-in","errorCode":null,"errorMessage":"unknown dotfile key {key:?} for {target} in {}","messagePattern":"unknown dotfile key (.+?) for (.+?) in (.+?)","errorType":"validation","errorClass":null,"httpStatus":null,"severity":"error","filePath":"src/system/files.rs","lineNumber":677,"sourceCode":"                    continue;\n                }\n                bail!(\"invalid dotfile declaration {target} in {}\", path.display());\n            };\n            if let Some(table) = value.as_table() {\n                for key in table.keys() {\n                    if !matches!(\n                        key.as_str(),\n                        \"source\"\n                            | \"content\"\n                            | \"mode\"\n                            | \"exclude\"\n                            | \"manifest\"\n                            | \"autosave\"\n                            | \"encrypt\"\n                            | \"variants\"\n                            | \"enabled\"\n                    ) {\n                        bail!(\n                            \"unknown dotfile key {key:?} for {target} in {}\",\n                            path.display()\n                        );\n                    }\n                }\n            }\n            if let FileTomlEntry::Source(_) = &entry {\n                validate_file_variants(&target, None, None, None, &[])?;\n            }\n            if let FileTomlEntry::Table {\n                source,\n                content,\n                mode,\n                manifest,\n                exclude,\n                variants,\n                ..\n            } = entry","sourceCodeStart":659,"sourceCodeEnd":695,"githubUrl":"https://github.com/jdx/mise/blob/533346cc374382b41ec5ff70536252b2e96e725c/src/system/files.rs#L659-L695","documentation":"After a valid whole-file entry is parsed, remaining keys in the entry table are checked against the allowlist (`source`, `content`, `mode`, `manifest`, `autosave`, `encrypt`, `variants`, `enabled`, plus edit keys). Any unrecognized key triggers this error, which identifies the key, target, and config file — a typo guard for the strict dotfile schema.","triggerScenarios":"A dotfile entry table containing an unknown key such as `soure`, `symlink = true`, or an old/renamed option no longer accepted.","commonSituations":"Using an option from an older or newer version whose key name changed; typos; copying options from other tools' dotfile configs (e.g. GNU Stow or Chezmoi flags).","solutions":["Remove the unknown key or correct its spelling against the allowed keys: source, content, mode, manifest, autosave, encrypt, variants, enabled","Check the tool version's docs for the correct key name if migrating between versions","Move genuinely unsupported options to a supported mechanism (e.g. use `variants` for per-destination settings)"],"exampleFix":"// before\n\"~/.gitconfig\" = { source = \"dotfiles/gitconfig\", symlink = true }\n// after\n\"~/.gitconfig\" = { source = \"dotfiles/gitconfig\", mode = \"symlink\" }","handlingStrategy":"validation","validationCode":"const ALLOWED = ['source','content','mode','manifest','autosave','encrypt','variants','enabled','block','line','template','comment','position'];\nfunction unknownKeys(entry) {\n  return Object.keys(entry || {}).filter(k => !ALLOWED.includes(k));\n}","typeGuard":"const onlyAllowedKeys = (e: Record<string, unknown>): boolean => Object.keys(e).every(k => ALLOWED_KEYS.includes(k));","tryCatchPattern":null,"preventionTips":["Check the version's dotfile docs before using an option key","Lint configs against the allowlist (source, content, mode, manifest, autosave, encrypt, variants, enabled)","Watch deprecation notes when upgrading — renamed keys will surface here"],"tags":["config","dotfiles","unknown-key"],"backgroundTag":"schema-validation-failed","analyzedSha":"533346cc374382b41ec5ff70536252b2e96e725c","analyzedAt":"2026-09-17T13:35:38.149Z","contentChangedAt":"2026-09-17T13:35:38.149Z","schemaVersion":2},"datasetVersion":"2026-09-23T08:17:48.524Z"}