18 lines
712 B
JSON
18 lines
712 B
JSON
{
|
|||
|
|
"$schema": "https://json-schema.org/draft/2020-12/schema",
|
||
|
|
"title": "Private subscriber operation v1.0",
|
||
|
|
"type": "object",
|
||
|
|
"required": ["schema_version", "operation_id", "operation", "email", "requested_at"],
|
||
|
|
"properties": {
|
||
|
|
"schema_version": {"const": "1.0"},
|
||
|
|
"operation_id": {"type": "string", "minLength": 1},
|
||
|
|
"operation": {"enum": ["subscribe", "unsubscribe"]},
|
||
|
|
"email": {"type": "string", "format": "email"},
|
||
|
|
"source": {"type": "string"},
|
||
|
|
"reason": {"type": "string"},
|
||
|
|
"requested_at": {"type": "string", "format": "date-time"},
|
||
|
|
"consent_at": {"type": "string", "format": "date-time"},
|
||
|
|
"consent_note": {"type": "string"}
|
||
|
|
},
|
||
|
|
"additionalProperties": false
|
||
|
|
}
|