60 lines
1.3 KiB
JSON
60 lines
1.3 KiB
JSON
{
|
|
"$schema": "https://json-schema.org/draft/2020-12/schema",
|
|
"$id": "https://paperspec.scient.ing/schemas/manifest.schema.json",
|
|
"title": "Package manifest",
|
|
"description": "MANIFEST.json, scienting-package/1; spec/12-package.md.",
|
|
"type": "object",
|
|
"properties": {
|
|
"format": {
|
|
"const": "scienting-package/1"
|
|
},
|
|
"doc": {
|
|
"const": "scienting-doc/1"
|
|
},
|
|
"key": {
|
|
"$ref": "common.schema.json#/$defs/documentKey"
|
|
},
|
|
"files": {
|
|
"type": "array",
|
|
"items": {
|
|
"type": "object",
|
|
"properties": {
|
|
"path": {
|
|
"type": "string",
|
|
"minLength": 1,
|
|
"maxLength": 512
|
|
},
|
|
"sha256": {
|
|
"$ref": "common.schema.json#/$defs/hash"
|
|
},
|
|
"size": {
|
|
"type": "integer",
|
|
"minimum": 0
|
|
},
|
|
"present": {
|
|
"const": false
|
|
},
|
|
"media_type": {
|
|
"type": "string",
|
|
"minLength": 1
|
|
}
|
|
},
|
|
"required": [
|
|
"path",
|
|
"sha256",
|
|
"size"
|
|
],
|
|
"additionalProperties": false
|
|
},
|
|
"minItems": 1
|
|
}
|
|
},
|
|
"required": [
|
|
"format",
|
|
"doc",
|
|
"key",
|
|
"files"
|
|
],
|
|
"additionalProperties": false
|
|
}
|