The current usage of validateAdditionalProperties is only used for a subset of configuration fields, such as build or the top-level entries.
This means that you can use the following TOML and whilst it will publish with no warnings, route won't work and nor will you get warnings about that or the unknown i_dont_exist field.
Describe the solution
The current usage of
validateAdditionalProperties
is only used for a subset of configuration fields, such asbuild
or thetop-level
entries.This means that you can use the following TOML and whilst it will publish with no warnings,
route
won't work and nor will you get warnings about that or the unknowni_dont_exist
field.Relevant file: https://github.com/cloudflare/wrangler2/blob/main/packages/wrangler/src/config/validation.ts
In my opinion, I don't see the downside to running it on everything other than unsafe bindings?