74 lines
1.6 KiB
JSON
74 lines
1.6 KiB
JSON
{
|
|
"$schema": "https://json-schema.org/draft/2020-12/schema",
|
|
"$id": "https://paperspec.scient.ing/schemas/reference.schema.json",
|
|
"title": "Reference record",
|
|
"description": "One line of references.jsonl; spec/10-references.md.",
|
|
"type": "object",
|
|
"properties": {
|
|
"node": {
|
|
"$ref": "common.schema.json#/$defs/nodeId"
|
|
},
|
|
"label": {
|
|
"type": "string",
|
|
"minLength": 1
|
|
},
|
|
"csl": {
|
|
"type": "object"
|
|
},
|
|
"resolution": {
|
|
"oneOf": [
|
|
{
|
|
"type": "object",
|
|
"properties": {
|
|
"type": {
|
|
"const": "doi"
|
|
},
|
|
"doi": {
|
|
"type": "string",
|
|
"pattern": "^10\\.[0-9]{4,9}/[^ ]+$"
|
|
}
|
|
},
|
|
"required": [
|
|
"type",
|
|
"doi"
|
|
],
|
|
"additionalProperties": false
|
|
},
|
|
{
|
|
"type": "object",
|
|
"properties": {
|
|
"type": {
|
|
"const": "document"
|
|
},
|
|
"doc": {
|
|
"$ref": "common.schema.json#/$defs/qualifiedKey"
|
|
}
|
|
},
|
|
"required": [
|
|
"type",
|
|
"doc"
|
|
],
|
|
"additionalProperties": false
|
|
},
|
|
{
|
|
"type": "object",
|
|
"properties": {
|
|
"type": {
|
|
"const": "none"
|
|
}
|
|
},
|
|
"required": [
|
|
"type"
|
|
],
|
|
"additionalProperties": false
|
|
}
|
|
]
|
|
}
|
|
},
|
|
"required": [
|
|
"node",
|
|
"resolution"
|
|
],
|
|
"additionalProperties": false
|
|
}
|