From d3b18a6587b391fb3bfe478920dbc7ada8cc6675 Mon Sep 17 00:00:00 2001 From: Sergio <77530549+sergi0g@users.noreply.github.com> Date: Thu, 2 Jan 2025 14:07:10 +0200 Subject: [PATCH] Update schema --- cup.schema.json | 55 +++++++++++++++++++++++++++---------------------- 1 file changed, 30 insertions(+), 25 deletions(-) diff --git a/cup.schema.json b/cup.schema.json index b9f993a..5d1cd57 100644 --- a/cup.schema.json +++ b/cup.schema.json @@ -14,25 +14,6 @@ "type": "boolean", "description": "Whether or not to enable agent mode. When agent mode is enabled, the server only exposes the API and the web interface is unavailable." }, - "registries": { - "type": "object", - "description": "Configuration options for specific registries", - "additionalProperties": { - "authentication": { - "description": "An authentication token provided by the registry", - "type": "string", - "minLength": 1 - }, - "insecure": { - "description": "Whether Cup should connect to the registry insecurely (HTTP) or not. Enable this only if you really need to.", - "type": "boolean" - }, - "ignore": { - "description": "Whether or not the registry should be ignored when running Cup", - "type": "boolean" - } - } - }, "images": { "type": "object", "description": "Configuration options for specific images", @@ -53,13 +34,29 @@ } } }, - "theme": { - "description": "The theme used by the web UI", + "refresh_interval": { "type": "string", - "enum": [ - "default", - "blue" - ] + "description": "The interval at which Cup should check for updates. Must be a valid cron expression. Reference: https://github.com/Hexagon/croner-rust#pattern", + "minLength": 11 + }, + "registries": { + "type": "object", + "description": "Configuration options for specific registries", + "additionalProperties": { + "authentication": { + "description": "An authentication token provided by the registry", + "type": "string", + "minLength": 1 + }, + "insecure": { + "description": "Whether Cup should connect to the registry insecurely (HTTP) or not. Enable this only if you really need to.", + "type": "boolean" + }, + "ignore": { + "description": "Whether or not the registry should be ignored when running Cup", + "type": "boolean" + } + } }, "socket": { "description": "The path to the unix socket you would like Cup to use for communication with the Docker daemon. Useful if you're trying to use Cup with Podman.", @@ -74,6 +71,14 @@ "type": "string", "minLength": 1 } + }, + "theme": { + "description": "The theme used by the web UI", + "type": "string", + "enum": [ + "default", + "blue" + ] } }, "required": [