Skip to content

Restore schemas directory for IANA compatibility#1389

Open
bact wants to merge 4 commits intospdx:developfrom
bact:restore-schemas
Open

Restore schemas directory for IANA compatibility#1389
bact wants to merge 4 commits intospdx:developfrom
bact:restore-schemas

Conversation

@bact
Copy link
Copy Markdown
Collaborator

@bact bact commented Apr 24, 2026

The schemas directory is referenced in official specifications, including IANA media type registration.
It is also referenced in examples/README.md (alongside the ontology directory).

To fix #1158 (reported by @RingoDev), this PR:

Notes: since IANA points to https://github.com/spdx/spdx-spec/blob/master/schemas/spdx-schema.json -- the change in this PR (develop branch) has to be mirrored in main branch too. GitHub will automatically redirected master branch URLs to main.

File Source
spdx-schema-2-2.json https://github.com/spdx/spdx-spec/blob/development/v2.2/schemas/spdx-schema.json
spdx-schema-2-2-1.json https://github.com/spdx/spdx-spec/blob/development/v2.2.1/schemas/spdx-schema.json
spdx-schema-2-2-2.json https://github.com/spdx/spdx-spec/blob/development/v2.2.2/schemas/spdx-schema.json
spdx-schema-2-3.json https://github.com/spdx/spdx-spec/blob/support/2.3/schemas/spdx-schema.json
spdx-schema-2-3-1-dev.json https://github.com/spdx/spdx-spec/blob/support/2.3.1/schemas/spdx-schema.json
spdx-schema-3-0-1.json https://spdx.github.io/spdx-spec/v3.0.1/rdf/schema.json
spdx-schema-3-1-dev.json https://spdx.github.io/spdx-spec/v3.1-dev/rdf/schema.json
spdx-schema.json Latest 2.x (symlink)

bact added 2 commits April 24, 2026 15:28
The directory is referenced in official documents and should be kept accessible:

- https://www.iana.org/assignments/media-types/application/spdx+json
- https://spdx.github.io/spdx-spec/v2.3/conformance/#44-standard-data-format-requirements

For backward compatibility reason, the file `spdx-schema.json` should point to SPDX 2 version.

Signed-off-by: Arthit Suriyawongkul <[email protected]>
Signed-off-by: Arthit Suriyawongkul <[email protected]>
@bact bact added this to the 2.3.1 milestone Apr 24, 2026
@bact bact added doc improvement Area where the project documentation needs improvement website improvement Area where the project website needs fixing labels Apr 24, 2026
Signed-off-by: Arthit Suriyawongkul <[email protected]>
Signed-off-by: Arthit Suriyawongkul <[email protected]>
Copy link
Copy Markdown
Member

@goneall goneall left a comment

Choose a reason for hiding this comment

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

I think this should be fine to add back for compatibility.

@zvr - any concerns?

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

Labels

doc improvement Area where the project documentation needs improvement website improvement Area where the project website needs fixing

Projects

None yet

Development

Successfully merging this pull request may close these issues.

Link in IANA media type registration seems to contain a dead link

2 participants