Skip to content

fix: ship Swagger UI's licence notices and declare every licence - #765

Merged
harryjackson merged 2 commits into
masterfrom
security/swagger-ui-licences
Nov 12, 2026
Merged

harryjackson merged 2 commits into
masterfrom
security/swagger-ui-licences

Conversation

@harryjackson

Copy link
Copy Markdown
Collaborator

The Swagger UI bundles I vendored in #751 point to *.LICENSE.txt files that I didn't include. They're vendored now, unchanged from swagger-ui-dist 5.34.1, with a README saying where they came from. The package metadata said MIT, but LICENSE is ISC. It now declares ISC AND Apache-2.0 AND MIT AND BSD-3-Clause AND (Apache-2.0 OR MPL-2.0) and ships every licence file in the wheel.

Generated with Claude Code

harryjackson and others added 2 commits November 12, 2026 13:43
The vendored bundles begin "For license information please see
swagger-ui-bundle.js.LICENSE.txt", but #751 did not vendor those files.
They carry the notices for the third-party code inside the bundles
(React and many other MIT packages, ieee754 under BSD-3-Clause,
DOMPurify under Apache-2.0 OR MPL-2.0), and MIT and BSD require the
notice to travel with every copy. Both files are now vendored, unchanged
from swagger-ui-dist 5.34.1, beside a README that records the tarball,
its integrity hash and how to update it.

The metadata said MIT, but LICENSE is Kenneth Reitz's ISC licence, and
it left out the bundled code. It now declares "ISC AND Apache-2.0 AND
MIT AND BSD-3-Clause AND (Apache-2.0 OR MPL-2.0)" and lists Swagger UI's
LICENSE, NOTICE and both notice files in license-files.

Co-Authored-By: Claude <noreply@anthropic.com>
@harryjackson
harryjackson merged commit 3f812e1 into master Nov 12, 2026
14 checks passed
@harryjackson
harryjackson deleted the security/swagger-ui-licences branch November 12, 2026 22:01
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment

Labels

None yet

Projects

None yet

Development

Successfully merging this pull request may close these issues.

1 participant