-
Notifications
You must be signed in to change notification settings - Fork 145
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
Error about duplicate properties in manifest.json #803
Comments
Oh, good call. I think a straight up error is appropriate here.
On 30 June 2016 at 22:43:25, Kumar McMillan ([email protected])
|
Doing some research it seems this is totally allowed by the JSON spec (though not recommended, it is technically allowed) and most parsers (PHP, node, Python) just replace the value of the key whenever it hits a new one. That said, we can check for duplicate keys pretty easily with |
…st-803 Don't allow duplicate keys in manifest (fix #803)
I was able to upload WebExtensions with duplicate keys in manifest, without any issues:
|
@ValentinaPC This might not be released yet. When a patch lands in addons-linter it takes a package release and a lib bump in addons-server to be at a point ready to test. |
I saw this closed... so... I've tested! 😄 |
@ValentinaPC it's worth noting there'll always be a delay between closure and it being possible to test for every single @tofumatt got any thoughts on how we can make it clearer for |
Unreleased or similar works for me. Automating that sounds neat but as we
work less on linter might not be worth the effort unless there’s prior art
😃
|
The linter should show a warning (or error?) if a manifest has duplicate properties in it. This will lead to confusing results when the JSON is parsed by Firefox (I think the last one wins). Example:
The text was updated successfully, but these errors were encountered: