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

+91
View File
@@ -0,0 +1,91 @@
{
"$schema": "https://json-schema.org/draft/2020-12/schema",
"$id": "https://paperspec.scient.ing/schemas/revocation.schema.json",
"title": "Revocation",
"description": "scienting-revocation/1; spec/08-fidelity.md.",
"type": "object",
"properties": {
"format": {
"const": "scienting-revocation/1"
},
"id": {
"$ref": "common.schema.json#/$defs/recordId"
},
"receipt": {
"$ref": "common.schema.json#/$defs/recordId"
},
"signer": {
"$ref": "common.schema.json#/$defs/key"
},
"period": {
"type": "object",
"properties": {
"from": {
"$ref": "common.schema.json#/$defs/time"
},
"to": {
"$ref": "common.schema.json#/$defs/time"
}
},
"required": [
"from",
"to"
],
"additionalProperties": false
},
"reason": {
"type": "string",
"minLength": 1
},
"by": {
"$ref": "common.schema.json#/$defs/key"
},
"at": {
"$ref": "common.schema.json#/$defs/time"
},
"signature": {
"$ref": "common.schema.json#/$defs/signature"
}
},
"required": [
"format",
"id",
"reason",
"by",
"at",
"signature"
],
"additionalProperties": false,
"oneOf": [
{
"required": [
"receipt"
],
"not": {
"anyOf": [
{
"required": [
"signer"
]
},
{
"required": [
"period"
]
}
]
}
},
{
"required": [
"signer",
"period"
],
"not": {
"required": [
"receipt"
]
}
}
]
}