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

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