Bug 1942814 Comment 0 Edit History

Note: The actual edited comment in the bug view page will always show the original commenter’s name and original timestamp.

While importing the WebExtensions JSONSchema for Firefox 134 and 135 in the addons-linter project we have noticed that ajv considers an empty enum array as invalid JSONSchema.

In the short term we are workarounding this on the addons-linter side by injecting one of the existing optional-only permisions ("userScripts") in the empty array entry, for more details about the workaround see [addons-linter pull request importing Firefox 134 and 135 schema data](https://github.com/mozilla/addons-linter/pull/5551).

This bugzilla issue is tracking looking into an alternative to that workaround to be applied on the Firefox side, so that we can then get rid of the short term workaround applied on the addons-linter side along with importing the updated JSONSchema from Firefox.
While importing the WebExtensions JSONSchema for Firefox 134 and 135 in the addons-linter project we have noticed that ajv considers an empty enum array as invalid JSONSchema.

In the short term we are workarounding this on the addons-linter side by injecting one of the existing optional-only permisions ("userScripts") in the empty array entry, for more details about the workaround see [addons-linter pull request importing Firefox 134 and 135 schema data](https://github.com/mozilla/addons-linter/pull/5551).

This bugzilla issue is tracking looking into an alternative to that workaround to be applied on the Firefox side, so that we can then get rid of the short term workaround applied on the addons-linter side along with importing the updated JSONSchema from Firefox (which is tracked by https://github.com/mozilla/addons-linter/issues/5553).

Back to Bug 1942814 Comment 0