Files
paperspec/schemas/snapshot.schema.json
T
alexm 4fa326dc76
check / check (push) Successful in 42s
site / site (push) Successful in 3m4s
First implementation (#1)
Reviewed-on: #1
2026-10-15 05:47:05 -04:00

121 lines
2.6 KiB
JSON

{
"$schema": "https://json-schema.org/draft/2020-12/schema",
"$id": "https://paperspec.scient.ing/schemas/snapshot.schema.json",
"title": "Draft snapshot",
"description": "scienting-snapshot/1: the pinned claims, quotations and datasets a draft cites; spec/21-drafts.md.",
"type": "object",
"properties": {
"format": {
"const": "scienting-snapshot/1"
},
"store": {
"$ref": "common.schema.json#/$defs/key"
},
"made_at": {
"$ref": "common.schema.json#/$defs/time"
},
"quotes": {
"type": "array",
"items": {
"type": "object",
"properties": {
"address": {
"$ref": "common.schema.json#/$defs/address"
},
"anchor": {
"$ref": "anchor.schema.json"
},
"text": {
"type": "string",
"minLength": 1
},
"fidelity": {
"$ref": "common.schema.json#/$defs/level"
},
"result": {
"enum": [
"current",
"changed-below",
"moved",
"reattached"
]
}
},
"required": [
"address",
"anchor",
"text",
"fidelity",
"result"
],
"additionalProperties": false
}
},
"claims": {
"type": "array",
"items": {
"type": "object",
"properties": {
"ref": {
"type": "string",
"minLength": 1
},
"pin": {
"type": "string",
"minLength": 1
},
"level": {
"type": "string",
"minLength": 1
},
"standing": {
"type": "string",
"minLength": 1
},
"rendering": {
"type": "string",
"minLength": 1
},
"typst": {
"type": "string",
"minLength": 1
}
},
"required": [
"ref",
"pin"
],
"additionalProperties": false
}
},
"datasets": {
"type": "array",
"items": {
"type": "object",
"properties": {
"id": {
"$ref": "common.schema.json#/$defs/datasetId"
},
"hash": {
"$ref": "common.schema.json#/$defs/hash"
}
},
"required": [
"id",
"hash"
],
"additionalProperties": false
}
}
},
"required": [
"format",
"store",
"made_at",
"quotes",
"claims",
"datasets"
],
"additionalProperties": false
}