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,81 @@
|
||||
{
|
||||
"$schema": "https://json-schema.org/draft/2020-12/schema",
|
||||
"$id": "https://paperspec.scient.ing/schemas/stages.schema.json",
|
||||
"title": "Stage requirements",
|
||||
"description": "scienting-stages/1: the uses each stage needs; configuration, not code; spec/14-rights.md.",
|
||||
"type": "object",
|
||||
"properties": {
|
||||
"format": {
|
||||
"const": "scienting-stages/1"
|
||||
},
|
||||
"id": {
|
||||
"$ref": "common.schema.json#/$defs/key"
|
||||
},
|
||||
"note": {
|
||||
"type": "string",
|
||||
"minLength": 1
|
||||
},
|
||||
"stages": {
|
||||
"type": "object",
|
||||
"minProperties": 1,
|
||||
"propertyNames": {
|
||||
"$ref": "common.schema.json#/$defs/key"
|
||||
},
|
||||
"additionalProperties": {
|
||||
"type": "object",
|
||||
"properties": {
|
||||
"uses": {
|
||||
"type": "array",
|
||||
"items": {
|
||||
"enum": [
|
||||
"read",
|
||||
"tdm",
|
||||
"redistribute",
|
||||
"quote-public",
|
||||
"accessible-copy"
|
||||
]
|
||||
},
|
||||
"uniqueItems": true
|
||||
},
|
||||
"ai": {
|
||||
"type": "object",
|
||||
"properties": {
|
||||
"purpose": {
|
||||
"enum": [
|
||||
"internal",
|
||||
"external"
|
||||
]
|
||||
},
|
||||
"processors": {
|
||||
"type": "array",
|
||||
"items": {
|
||||
"$ref": "common.schema.json#/$defs/processor"
|
||||
},
|
||||
"minItems": 1,
|
||||
"uniqueItems": true
|
||||
}
|
||||
},
|
||||
"required": [
|
||||
"purpose"
|
||||
],
|
||||
"additionalProperties": false
|
||||
},
|
||||
"note": {
|
||||
"type": "string",
|
||||
"minLength": 1
|
||||
}
|
||||
},
|
||||
"required": [
|
||||
"uses"
|
||||
],
|
||||
"additionalProperties": false
|
||||
}
|
||||
}
|
||||
},
|
||||
"required": [
|
||||
"format",
|
||||
"id",
|
||||
"stages"
|
||||
],
|
||||
"additionalProperties": false
|
||||
}
|
||||
Reference in new issue
Block a user