Initial commit
check / check (macos-latest) (push) Canceled after 0s
check / check (ubuntu-latest) (push) Canceled after 0s

This commit is contained in:
alexm committed 2026-10-11 23:45:29 -04:00
commit 62f54ed869
373 files changed
+16704

No files matched your search

+73
View File
@@ -0,0 +1,73 @@
{
"$schema": "https://json-schema.org/draft/2020-12/schema",
"$id": "https://scient.ing/ns/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
}