From 40446e13bb38a036b14a3252c9f893c905fe7294 Mon Sep 17 00:00:00 2001 From: Sebastian Frank Date: Thu, 24 Apr 2025 14:48:16 +0000 Subject: [PATCH] =?UTF-8?q?feat(config.json):=20f=C3=BCge=20admin-Konfigur?= =?UTF-8?q?ation=20mit=20Token-Management=20hinzu?= MIME-Version: 1.0 Content-Type: text/plain; charset=UTF-8 Content-Transfer-Encoding: 8bit --- schemas/api-config/config.json | 34 +++++++++++++++++++++++++++++++--- 1 file changed, 31 insertions(+), 3 deletions(-) diff --git a/schemas/api-config/config.json b/schemas/api-config/config.json index 99c4e03..b391d36 100644 --- a/schemas/api-config/config.json +++ b/schemas/api-config/config.json @@ -25,7 +25,9 @@ "imageUrl": { "description": "project's teaser image url shown in admin ui", "oneOf": [ - { "type": "string" }, + { + "type": "string" + }, { "$ref": "definitions.json#/definitions/evalObject" } @@ -124,7 +126,33 @@ "description": "max age in seconds" } } + }, + "admin": { + "type": "object", + "description": "admin configuration", + "additionalProperties": false, + "properties": { + "tokens": { + "type": "array", + "description": "list of admin tokens", + "items": { + "type": "object", + "properties": { + "token": { + "type": "string", + "description": "admin token" + }, + "allowReload": { + "type": "boolean", + "description": "allow reload" + } + } + } + } + } } }, - "required": ["namespace"] -} + "required": [ + "namespace" + ] +} \ No newline at end of file