{ "$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" ] } } ] }