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,108 @@
|
||||
{
|
||||
"$schema": "https://json-schema.org/draft/2020-12/schema",
|
||||
"$id": "https://paperspec.scient.ing/schemas/witnesses.schema.json",
|
||||
"title": "Witnesses",
|
||||
"description": "witnesses.json of a package; spec/02-model.md.",
|
||||
"type": "object",
|
||||
"properties": {
|
||||
"witnesses": {
|
||||
"type": "array",
|
||||
"items": {
|
||||
"type": "object",
|
||||
"properties": {
|
||||
"id": {
|
||||
"$ref": "common.schema.json#/$defs/nodeId"
|
||||
},
|
||||
"sha256": {
|
||||
"$ref": "common.schema.json#/$defs/hash"
|
||||
},
|
||||
"size": {
|
||||
"type": "integer",
|
||||
"minimum": 0
|
||||
},
|
||||
"kind": {
|
||||
"enum": [
|
||||
"pdf",
|
||||
"jats",
|
||||
"latex",
|
||||
"html",
|
||||
"epub",
|
||||
"typst",
|
||||
"xml",
|
||||
"image",
|
||||
"other"
|
||||
]
|
||||
},
|
||||
"media_type": {
|
||||
"type": "string",
|
||||
"minLength": 1
|
||||
},
|
||||
"pages": {
|
||||
"type": "integer",
|
||||
"minimum": 1
|
||||
},
|
||||
"text_layer": {
|
||||
"type": "boolean"
|
||||
},
|
||||
"version_label": {
|
||||
"type": "string",
|
||||
"minLength": 1
|
||||
},
|
||||
"origin": {
|
||||
"type": "object",
|
||||
"properties": {
|
||||
"source": {
|
||||
"enum": [
|
||||
"publisher",
|
||||
"repository",
|
||||
"preprint-server",
|
||||
"author",
|
||||
"team",
|
||||
"licensed-delivery",
|
||||
"library",
|
||||
"other"
|
||||
]
|
||||
},
|
||||
"url": {
|
||||
"$ref": "common.schema.json#/$defs/url"
|
||||
},
|
||||
"doi": {
|
||||
"type": "string",
|
||||
"minLength": 1
|
||||
},
|
||||
"retrieved_at": {
|
||||
"$ref": "common.schema.json#/$defs/time"
|
||||
},
|
||||
"note": {
|
||||
"type": "string",
|
||||
"minLength": 1
|
||||
}
|
||||
},
|
||||
"required": [
|
||||
"source"
|
||||
],
|
||||
"additionalProperties": false
|
||||
},
|
||||
"rights": {
|
||||
"$ref": "rights.schema.json"
|
||||
}
|
||||
},
|
||||
"required": [
|
||||
"id",
|
||||
"sha256",
|
||||
"size",
|
||||
"kind",
|
||||
"media_type",
|
||||
"origin",
|
||||
"rights"
|
||||
],
|
||||
"additionalProperties": false
|
||||
},
|
||||
"minItems": 1
|
||||
}
|
||||
},
|
||||
"required": [
|
||||
"witnesses"
|
||||
],
|
||||
"additionalProperties": false
|
||||
}
|
||||
Reference in new issue
Block a user