First implementation (#1)
Reviewed-on: #1
This commit was merged in pull request #1.
This commit is contained in:
1 parent
34c0abb26a
commit
4fa326dc76
534 files changed
+28280
-37
No files matched your search
@@ -0,0 +1,120 @@
|
||||
{
|
||||
"$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
|
||||
}
|
||||
Reference in new issue
Block a user