Proposal: change the static ruleset JSON structure #467
Labels
neutral: chrome
Not opposed or supportive from Chrome
proposal
Proposal for a change or new feature
supportive: firefox
Supportive from Firefox
supportive: safari
Supportive from Safari
Problem
The overall problem explanation is the same as in #466, we'd like to have a place in the static ruleset file where we could store additional metadata. There's rule-level metadata mentioned in #466, but there can be "ruleset-level" metadata and currently due to the structure of a ruleset file there's no good place to store it.
Can we consider changing the structure from having an array on the root level
[ rule1, rule2 ]
to something like that:In this case we can declare that the
metadata
field can be used to store additional metadata, whichever the developer needs:To not break existing extensions I propose accepting both formats (array at the root and object at the root), but having the second format recommended in the documentation.
The text was updated successfully, but these errors were encountered: