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,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"
|
||||
]
|
||||
}
|
||||
}
|
||||
]
|
||||
}
|
||||
Reference in new issue
Block a user