-
Notifications
You must be signed in to change notification settings - Fork 716
New issue
Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.
By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.
Already on GitHub? Sign in to your account
🚀 Feature Request: Expand validateAdditionalProperties to more configuration types #2586
Labels
Comments
Hey! 👋 This seems like a good idea, especially given TOML format confusions. 👍 |
I ran into this today - turns out wrangler environments don't show the specific key that's invalid, making it harder to spot/figure out what was wrong:
|
12 tasks
Sign up for free
to join this conversation on GitHub.
Already have an account?
Sign in to comment
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?
The text was updated successfully, but these errors were encountered: