Open Bug 1708509 Opened 3 years ago

support manifest version in namespace properties schema

Categories

(WebExtensions :: General, enhancement, P3)

enhancement

Tracking

(Not tracked)

People

(Reporter: mixedpuppy, Unassigned)

References

(Blocks 1 open bug)

Details

This was implemented in the patch for bug 1693403 but is dropped until we have a need for it.

Given a schema:

{
    namespace: "mixed",

    properties: {
      PROP1: {
        choices: [
          { max_manifest_version: 2, value: 20 },
          { min_manifest_version: 3, value: 30 },
        ],
      },
...

Only one can ever be used.

We considered "oneOf" translation to json schema, but oneOf doesn't work in cases where normalization could match more than one.

The removal is in this diff: https://phabricator.services.mozilla.com/D105821?vs=432314&id=433626#toc

You need to log in before you can comment on or make changes to this bug.