-
Notifications
You must be signed in to change notification settings - Fork 18
Create REUSE.toml schema #109
New issue
Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.
By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.
Already on GitHub? Sign in to your account
Open
carmenbianca
wants to merge
5
commits into
fsfe:main
Choose a base branch
from
carmenbianca:tomlschema
base: main
Could not load branches
Branch not found: {{ refName }}
Loading
Could not load tags
Nothing to show
Loading
Are you sure you want to change the base?
Some commits from the old base branch may be removed from the timeline,
and old review comments may become outdated.
Open
Changes from all commits
Commits
Show all changes
5 commits
Select commit
Hold shift + click to select a range
2a46b86
Create REUSE.toml schema
carmenbianca 757779a
Convert to REUSE.toml, cover schema.json in new REUSE.toml
carmenbianca f05802d
Remove SPDX keys
carmenbianca ad10585
Document JSON schema availability in spec and FAQ
carmenbianca 4e8fa49
Remove additionalProperties
carmenbianca File filter
Filter by extension
Conversations
Failed to load comments.
Loading
Jump to
Jump to file
Failed to load files.
Loading
Diff view
Diff view
There are no files selected for viewing
This file contains hidden or bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file was deleted.
Oops, something went wrong.
This file contains hidden or bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -0,0 +1,55 @@ | ||
version = 1 | ||
|
||
[[annotations]] | ||
path = "site/static/*.schema.json" | ||
precedence = "override" | ||
SPDX-FileCopyrightText = "2025 Free Software Foundation Europe <https://fsfe.org>" | ||
SPDX-License-Identifier = "CC0-1.0" | ||
|
||
[[annotations]] | ||
path = "site/static/fonts/roboto/**" | ||
precedence = "aggregate" | ||
SPDX-FileCopyrightText = "2018 Google" | ||
SPDX-License-Identifier = "Apache-2.0" | ||
|
||
[[annotations]] | ||
path = "site/static/fonts/fontawesome/css/**" | ||
precedence = "aggregate" | ||
SPDX-FileCopyrightText = "Font Awesome <https://fontawesome.com>" | ||
SPDX-License-Identifier = "MIT" | ||
|
||
[[annotations]] | ||
path = "site/static/fonts/fontawesome/webfonts/**" | ||
precedence = "aggregate" | ||
SPDX-FileCopyrightText = "Font Awesome <https://fontawesome.com>" | ||
SPDX-License-Identifier = "OFL-1.1" | ||
|
||
[[annotations]] | ||
path = "site/static/fonts/fontawesome/webfonts/**.svg" | ||
precedence = "aggregate" | ||
SPDX-FileCopyrightText = "Font Awesome <https://fontawesome.com>" | ||
SPDX-License-Identifier = "CC-BY-4.0" | ||
|
||
[[annotations]] | ||
path = "site/static/img/**.png" | ||
precedence = "aggregate" | ||
SPDX-FileCopyrightText = "2019 Free Software Foundation Europe <https://fsfe.org>" | ||
SPDX-License-Identifier = "CC-BY-SA-4.0" | ||
|
||
[[annotations]] | ||
path = "site/static/img/**.jpg" | ||
precedence = "aggregate" | ||
SPDX-FileCopyrightText = "2019 Free Software Foundation Europe <https://fsfe.org>" | ||
SPDX-License-Identifier = "CC-BY-SA-4.0" | ||
|
||
[[annotations]] | ||
path = "site/i18n/**.json" | ||
precedence = "aggregate" | ||
SPDX-FileCopyrightText = "2019 Free Software Foundation Europe <https://fsfe.org>" | ||
SPDX-License-Identifier = "CC-BY-SA-4.0" | ||
|
||
[[annotations]] | ||
path = "site/po/**.po**" | ||
precedence = "aggregate" | ||
SPDX-FileCopyrightText = "2020 Free Software Foundation Europe e.V." | ||
SPDX-License-Identifier = "CC-BY-SA-4.0" |
This file contains hidden or bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains hidden or bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains hidden or bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains hidden or bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -0,0 +1,85 @@ | ||
{ | ||
"$schema": "https://json-schema.org/draft/2020-12/schema", | ||
"$id": "https://reuse.software/reuse-toml-v1.schema.json", | ||
"$comment": "See https://reuse.software/spec-3.2/ for details", | ||
There was a problem hiding this comment. Choose a reason for hiding this commentThe reason will be displayed to describe this comment to others. Learn more. Point to https://reuse.software/ |
||
"title": "REUSE.toml global licensing file, version 1", | ||
"description": "A configuration file which declares the copyright and licensing of files in a directory tree", | ||
"type": "object", | ||
"required": ["version"], | ||
"properties": { | ||
"version": { | ||
"description": "The schema version of the REUSE.toml file", | ||
"type": "integer", | ||
"exclusiveMinimum": 0, | ||
"examples": [1] | ||
}, | ||
"annotations": { | ||
"description": "Annotation object array", | ||
"type": "array", | ||
"items": { | ||
"description": "Annotation object", | ||
"type": "object", | ||
"required": ["path"], | ||
"properties": { | ||
"path": { | ||
"description": "Relative path(s) to files, with optional globbing", | ||
"oneOf": [ | ||
{ | ||
"type": "string" | ||
}, | ||
{ | ||
"type": "array", | ||
"items": { | ||
"type": "string" | ||
} | ||
} | ||
], | ||
"examples": [["po/*.po", "po/*.pot"], "tests/resources/**"] | ||
}, | ||
"precedence": { | ||
"description": "The order of precedence for Licensing Information between this REUSE.toml file and the files covered by path", | ||
"enum": ["closest", "aggregate", "override"], | ||
"default": "closest", | ||
"examples": ["closest"] | ||
}, | ||
"SPDX-FileCopyrightText": { | ||
"description": "Copyright notice(s)", | ||
"oneOf": [ | ||
{ | ||
"type": "string" | ||
}, | ||
{ | ||
"type": "array", | ||
"items": { | ||
"type": "string" | ||
} | ||
} | ||
], | ||
"examples": [ | ||
"2019 Jane Doe <[email protected]>", | ||
"© 2019 John Doe <[email protected]>", | ||
"Contributors to Example Project <https://project.example.com>", | ||
"(C) Example Cooperative <[email protected]>", | ||
"Copyright 2016, 2018-2019 Joe Anybody" | ||
] | ||
}, | ||
"SPDX-License-Identifier": { | ||
"description": "License identifier(s)", | ||
"oneOf": [ | ||
{ | ||
"type": "string" | ||
}, | ||
{ | ||
"type": "array", | ||
"items": { | ||
"type": "string" | ||
} | ||
} | ||
], | ||
"examples": ["GPL-3.0-or-later", "GPL-3.0-or-later OR Apache-2.0"] | ||
} | ||
} | ||
} | ||
} | ||
} | ||
} |
Add this suggestion to a batch that can be applied as a single commit.
This suggestion is invalid because no changes were made to the code.
Suggestions cannot be applied while the pull request is closed.
Suggestions cannot be applied while viewing a subset of changes.
Only one suggestion per line can be applied in a batch.
Add this suggestion to a batch that can be applied as a single commit.
Applying suggestions on deleted lines is not supported.
You must change the existing code in this line in order to create a valid suggestion.
Outdated suggestions cannot be applied.
This suggestion has been applied or marked resolved.
Suggestions cannot be applied from pending reviews.
Suggestions cannot be applied on multi-line comments.
Suggestions cannot be applied while the pull request is queued to merge.
Suggestion cannot be applied right now. Please check back later.
Uh oh!
There was an error while loading. Please reload this page.
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
This Specification → The REUSE specification
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
Or: [...] is provided at [...] for your convenience.