First implementation (#1)
Reviewed-on: #1
This commit was merged in pull request #1.
This commit is contained in:
1 parent
34c0abb26a
commit
4fa326dc76
534 files changed
+28280
-37
No files matched your search
@@ -0,0 +1,150 @@
|
||||
{
|
||||
"$schema": "https://json-schema.org/draft/2020-12/schema",
|
||||
"$id": "https://paperspec.scient.ing/schemas/rights.schema.json",
|
||||
"title": "Rights record",
|
||||
"description": "scienting-rights/1: a witness's license, basis and uses; spec/14-rights.md.",
|
||||
"type": "object",
|
||||
"properties": {
|
||||
"format": {
|
||||
"const": "scienting-rights/1"
|
||||
},
|
||||
"license": {
|
||||
"anyOf": [
|
||||
{
|
||||
"$ref": "common.schema.json#/$defs/license"
|
||||
},
|
||||
{
|
||||
"type": "null"
|
||||
}
|
||||
]
|
||||
},
|
||||
"basis": {
|
||||
"$ref": "common.schema.json#/$defs/basis"
|
||||
},
|
||||
"uses": {
|
||||
"type": "object",
|
||||
"properties": {
|
||||
"read": {
|
||||
"$ref": "common.schema.json#/$defs/tri"
|
||||
},
|
||||
"tdm": {
|
||||
"$ref": "common.schema.json#/$defs/tri"
|
||||
},
|
||||
"redistribute": {
|
||||
"$ref": "common.schema.json#/$defs/tri"
|
||||
},
|
||||
"quote-public": {
|
||||
"$ref": "common.schema.json#/$defs/tri"
|
||||
},
|
||||
"accessible-copy": {
|
||||
"$ref": "common.schema.json#/$defs/tri"
|
||||
},
|
||||
"ai": {
|
||||
"type": "object",
|
||||
"properties": {
|
||||
"internal/local": {
|
||||
"$ref": "common.schema.json#/$defs/tri"
|
||||
},
|
||||
"internal/tenancy": {
|
||||
"$ref": "common.schema.json#/$defs/tri"
|
||||
},
|
||||
"internal/outside-no-retention": {
|
||||
"$ref": "common.schema.json#/$defs/tri"
|
||||
},
|
||||
"internal/outside": {
|
||||
"$ref": "common.schema.json#/$defs/tri"
|
||||
},
|
||||
"external/local": {
|
||||
"$ref": "common.schema.json#/$defs/tri"
|
||||
},
|
||||
"external/tenancy": {
|
||||
"$ref": "common.schema.json#/$defs/tri"
|
||||
},
|
||||
"external/outside-no-retention": {
|
||||
"$ref": "common.schema.json#/$defs/tri"
|
||||
},
|
||||
"external/outside": {
|
||||
"$ref": "common.schema.json#/$defs/tri"
|
||||
}
|
||||
},
|
||||
"required": [],
|
||||
"additionalProperties": false
|
||||
}
|
||||
},
|
||||
"required": [],
|
||||
"additionalProperties": false
|
||||
},
|
||||
"asserted_by": {
|
||||
"type": "object",
|
||||
"properties": {
|
||||
"by": {
|
||||
"type": "string",
|
||||
"minLength": 1
|
||||
},
|
||||
"evidence": {
|
||||
"type": "array",
|
||||
"items": {
|
||||
"type": "object",
|
||||
"properties": {
|
||||
"kind": {
|
||||
"enum": [
|
||||
"license-url",
|
||||
"contract",
|
||||
"crossref-license",
|
||||
"delivery",
|
||||
"statement"
|
||||
]
|
||||
},
|
||||
"url": {
|
||||
"$ref": "common.schema.json#/$defs/url"
|
||||
},
|
||||
"sha256": {
|
||||
"$ref": "common.schema.json#/$defs/hash"
|
||||
},
|
||||
"doi": {
|
||||
"type": "string",
|
||||
"minLength": 1
|
||||
},
|
||||
"note": {
|
||||
"type": "string",
|
||||
"minLength": 1
|
||||
}
|
||||
},
|
||||
"required": [
|
||||
"kind"
|
||||
],
|
||||
"additionalProperties": false
|
||||
}
|
||||
}
|
||||
},
|
||||
"required": [
|
||||
"by",
|
||||
"evidence"
|
||||
],
|
||||
"additionalProperties": false
|
||||
},
|
||||
"at": {
|
||||
"$ref": "common.schema.json#/$defs/time"
|
||||
},
|
||||
"valid_until": {
|
||||
"anyOf": [
|
||||
{
|
||||
"$ref": "common.schema.json#/$defs/time"
|
||||
},
|
||||
{
|
||||
"type": "null"
|
||||
}
|
||||
]
|
||||
}
|
||||
},
|
||||
"required": [
|
||||
"format",
|
||||
"license",
|
||||
"basis",
|
||||
"uses",
|
||||
"asserted_by",
|
||||
"at",
|
||||
"valid_until"
|
||||
],
|
||||
"additionalProperties": false
|
||||
}
|
||||
Reference in new issue
Block a user