registrar

Files related to my duties as Registrar of Agora Nomic
git clone git://juanmeleiro.mat.br/registrar
Log | Files | Refs | README

commit fca45bafaada37818bf0e5ce130d2bc749a88a0a
parent fe15d1099ae440e69667b47341cc71c8e352ce94
Author: Juan F. Meleiro <juan@juanmeleiro.mat.br>
Date:   Wed,  5 Feb 2025 16:09:49 -0300

Add a JSON schema for the Registrar log

Diffstat:
Aspecs/registrar.log.schema.json | 84+++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++
1 file changed, 84 insertions(+), 0 deletions(-)

diff --git a/specs/registrar.log.schema.json b/specs/registrar.log.schema.json @@ -0,0 +1,83 @@ +{ + "$schema": "https://json-schema.org/draft/2020-12/vocab/validation", + "$vocabulary": { + "https://json-schema.org/draft/2020-12/vocab/validation": true + }, + "$id": "http://juanmeleiro.mat.br/agora/specs/registrar.log.schema.json", + "$ref": "http://juanmeleiro.mat.br/agora/specs/log.schema.json", + "items": { + "type": "object", + "oneOf": [ + { + "properties": { + "what": { + "const": "register" + } + }, + "required": ["who", "whence"] + }, + { + "properties": { + "what": { + "const": "weekly" + } + } + }, + { + "properties": { + "what": { + "const": "monthly" + } + } + }, + { + "properties": { + "what": { + "const": "activation" + } + }, + "required": ["who"] + }, + { + "properties": { + "what": { + "const": "deactivation" + } + }, + "required": ["who"] + }, + { + "properties": { + "what": { + "const": "deregister" + } + }, + "required": ["who"] + }, + { + "properties": { + "what": { + "const": "readdress" + } + }, + "required": ["who", "whither"] + }, + { + "properties": { + "what": { + "const": "rename" + } + }, + "required": ["who", "whither"] + }, + { + "properties": { + "what": { + "const": "writ" + } + }, + "required": ["who"] + } + ] + } +} +\ No newline at end of file