From ef001cc7bf452d8a6c07be0a84e46dd2271ad93b Mon Sep 17 00:00:00 2001 From: Nicolai Cornelis Date: Fri, 25 Oct 2024 22:05:06 +0200 Subject: [PATCH] Remove invalid acme + key/cert validator --- schema.json | 45 ++++++--------------------------------------- 1 file changed, 6 insertions(+), 39 deletions(-) diff --git a/schema.json b/schema.json index 4e905a2..1e68152 100644 --- a/schema.json +++ b/schema.json @@ -276,47 +276,14 @@ "description": "Settings required to set up manual or automatic HTTPS for your server. Either `key` and `cert` *or* `acme` is required, but not both.", "type": "object", "additionalProperties": false, - "not": { - "anyOf": [ - { - "required": [ - "key", - "acme" - ] - }, - { - "required": [ - "cert", - "acme" - ] - }, - { - "required": [ - "root_ca", - "acme" - ] - }, - { - "required": [ - "client_auth_type", - "acme" - ] - } + "dependentRequired": { + "key": [ + "cert" + ], + "cert": [ + "key" ] }, - "anyOf": [ - { - "required": [ - "acme" - ] - }, - { - "required": [ - "key", - "cert" - ] - } - ], "properties": { "address": { "description": "Host address/or port to bind to. Defaults to 127.0.0.1:443.",