92 lines
1.7 KiB
JSON
92 lines
1.7 KiB
JSON
{
|
|
"$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"
|
|
]
|
|
}
|
|
}
|
|
]
|
|
}
|