From 67790007ce2e59446cc19c2697b3618cc464fbe3 Mon Sep 17 00:00:00 2001 From: Sebastian Tobie Date: Wed, 25 Jun 2025 19:51:20 +0200 Subject: [PATCH] fixed the schemata --- schema-general.json | 21 +++++---------------- schema-site.json | 31 ++++++++++++------------------- 2 files changed, 17 insertions(+), 35 deletions(-) diff --git a/schema-general.json b/schema-general.json index b1d85c0..58a00fd 100644 --- a/schema-general.json +++ b/schema-general.json @@ -19,9 +19,10 @@ "default": null }, "dns": { + "description": "This contains the domains(Keys) and the DNS-Servers(values) that are responsible for it.", "type": "object", "additionalProperties": { - "$ref": "#/$defs/DnsBuilder" + "$ref": "#/$defs/Builder" } }, "certificates_path": { @@ -29,6 +30,7 @@ "default": "certificates" }, "ca": { + "description": "The Key of this table describe an nickname for an CA.\nLetsencrypt Prod and Staging are builtin configured, so they doesn't have to be configured.", "type": "object", "additionalProperties": { "$ref": "#/$defs/CA" @@ -37,7 +39,7 @@ }, "additionalProperties": false, "$defs": { - "DnsBuilder": { + "Builder": { "oneOf": [ { "type": "object", @@ -64,19 +66,6 @@ "server" ] }, - { - "type": "object", - "properties": { - "type": { - "type": "string", - "const": "dnsupdate" - } - }, - "additionalProperties": false, - "required": [ - "type" - ] - }, { "type": "object", "properties": { @@ -118,7 +107,7 @@ "type": "string" }, "renew_before": { - "description": "Amount of days the certificate is renewed before the Certificate is outdated\n TODO: give to processor", + "description": "Amount of days the certificate is renewed before the Certificate is outdated\nTODO: give to processor", "type": "integer", "format": "uint32", "minimum": 1, diff --git a/schema-site.json b/schema-site.json index c3e3cca..e80110f 100644 --- a/schema-site.json +++ b/schema-site.json @@ -66,13 +66,19 @@ }, "owner": { "description": "Owner of the Certificate and private key", - "type": "string", - "default": "" + "type": [ + "string", + "null" + ], + "default": null }, "group": { "description": "Group of the Certificate and private key", - "type": "string", - "default": "" + "type": [ + "string", + "null" + ], + "default": null } }, "additionalProperties": false, @@ -81,7 +87,7 @@ "domains" ], "$defs": { - "DnsBuilder": { + "Builder": { "oneOf": [ { "type": "object", @@ -108,19 +114,6 @@ "server" ] }, - { - "type": "object", - "properties": { - "type": { - "type": "string", - "const": "dnsupdate" - } - }, - "additionalProperties": false, - "required": [ - "type" - ] - }, { "type": "object", "properties": { @@ -162,7 +155,7 @@ "type": "string" }, "renew_before": { - "description": "Amount of days the certificate is renewed before the Certificate is outdated\n TODO: give to processor", + "description": "Amount of days the certificate is renewed before the Certificate is outdated\nTODO: give to processor", "type": "integer", "format": "uint32", "minimum": 1,