{ "$schema": "http://json-schema.org/draft-04/schema#", "title": "SerialisedConfig", "type": "object", "additionalProperties": false, "required": [ "name", "privateKey", "domain", "cnames", "acmeEmail", "remoteUsername" ], "properties": { "name": { "type": "string" }, "privateKey": { "type": "string" }, "publicKey": { "type": "string" }, "domain": { "type": "string" }, "cnames": { "type": "object", "additionalProperties": { "type": "string" } }, "subdomains": { "type": "array", "items": { "type": "string" } }, "acmeEmail": { "type": "string" }, "remoteUsername": { "type": "string" }, "radicaleConfig": { "oneOf": [ { "type": "null" }, { "$ref": "#/definitions/SerialisedRadicaleConfig" } ] }, "giteaConfig": { "oneOf": [ { "type": "null" }, { "$ref": "#/definitions/SerialisedGiteaConfig" } ] } }, "definitions": { "SerialisedRadicaleConfig": { "type": "object", "additionalProperties": false, "required": [ "user", "password", "gitEmail" ], "properties": { "user": { "type": "string" }, "password": { "type": "string" }, "gitEmail": { "type": "string" } } }, "SerialisedGiteaConfig": { "type": "object", "additionalProperties": false, "required": [ "serverPassword", "adminPassword", "adminEmailAddress", "adminUsername" ], "properties": { "serverPassword": { "type": "string" }, "adminPassword": { "type": "string" }, "adminEmailAddress": { "type": "string" }, "adminUsername": { "type": "string" } } } } }