Skip to content

Update license field information in documentation#2334

Open
keunes wants to merge 1 commit into
mozilla:masterfrom
keunes:patch-1
Open

Update license field information in documentation#2334
keunes wants to merge 1 commit into
mozilla:masterfrom
keunes:patch-1

Conversation

@keunes
Copy link
Copy Markdown

@keunes keunes commented May 19, 2026

Replace the explicit list of accepted SPDX identifiers for the 'license' field with a link to the add-on server documentation.

Some of the values currently listed will return errors when submitted, e.g.:

WebExtError: Submission failed (2): Bad Request
{
  "version": {
    "license": [
      "License with slug=GPL-3.0-or-later does not exist."
    ]
  }
}

Replace the explicit list of accepted SPDX identifiers for the 'license' field with a link to the add-on server documentation.
@willdurand
Copy link
Copy Markdown
Member

@rebloor thoughts?

```

The `"license"` field accepts one of these [SPDX identifiers](https://spdx.org/licenses/): `MPL-1.1`, `MPL-2.0`, `GPL-2.0-or-later`, `GPL-3.0-or-later`, `LGPL-2.1-or-later`, `LGPL-3.0-or-later`, `MIT`, `BSD-2-Clause`, `cc-all-rights-reserved`, `CC-BY-3.0`, `CC-BY-NC-3.0`, `CC-BY-NC-ND-3.0`, `CC-BY-NC-SA-3.0`, `CC-BY-ND-3.0`, `CC-BY-SA-3.0`, and `all-rights-reserved`.
See the [add-on server documentation](https://mozilla.github.io/addons-server/topics/api/licenses.html#license-list) for which values are accepted in the `"license"` field.
Copy link
Copy Markdown
Collaborator

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

I would be more specific about the link so the reader knows they're in the right place when they get there

Suggested change
See the [add-on server documentation](https://mozilla.github.io/addons-server/topics/api/licenses.html#license-list) for which values are accepted in the `"license"` field.
The values accepted by the `"license"` field are listed in the [License Choices - non-Themes](https://mozilla.github.io/addons-server/topics/api/licenses.html#license-list) section of the addons-server API documentation.

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment

Labels

Projects

None yet

Development

Successfully merging this pull request may close these issues.

3 participants