First implementation (#1)
check / check (push) Successful in 42s
site / site (push) Successful in 3m4s

Reviewed-on: #1
This commit was merged in pull request #1.
This commit is contained in:
alexm committed 2026-10-15 05:47:05 -04:00
1 parent 34c0abb26a
commit 4fa326dc76
534 files changed
+28280 -37

No files matched your search

+73
View File
@@ -0,0 +1,73 @@
{
"$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
}