From 72e1b93ccd643ab2534302bac081af73c49b9589 Mon Sep 17 00:00:00 2001 From: =?UTF-8?q?F=C3=A9lix=20Pi=C3=A9dallu?= Date: Tue, 26 Sep 2023 15:26:51 +0200 Subject: [PATCH] Add json-schema for wishlist.toml, and fix wishlist.toml --- schemas/wishlist.toml.schema.json | 34 +++++++++++++++++++++++++++++++ wishlist.toml | 2 +- 2 files changed, 35 insertions(+), 1 deletion(-) create mode 100644 schemas/wishlist.toml.schema.json diff --git a/schemas/wishlist.toml.schema.json b/schemas/wishlist.toml.schema.json new file mode 100644 index 00000000..368db38f --- /dev/null +++ b/schemas/wishlist.toml.schema.json @@ -0,0 +1,34 @@ +{ + "$schema": "http://json-schema.org/draft-07/schema", + "$id": "https://github.com/YunoHost/apps/blob/master/schemas/wishlist.toml.schema.json", + "title": "Yunohost's wishlist.toml schema", + "version": "0", + + "type": "object", + "required": [], + "additionalProperties": false, + "patternProperties": { + "^[a-z0-9_-]*$": { + "type": "object", + "required": ["name", "upstream"], + "additionalProperties": false, + "properties": { + "name": { + "type": "string" + }, + "description": { + "type": "string" + }, + "upstream": { + "type": "string", + "format": "url" + }, + "website": { + "type": "string", + "format": "url" + } + } + } + } + +} diff --git a/wishlist.toml b/wishlist.toml index 68fd5e4f..4f512c20 100644 --- a/wishlist.toml +++ b/wishlist.toml @@ -1014,7 +1014,7 @@ website = "https://rustdesk.com/server" [sabnzbd] name = "SABnzbd" -descrition = "The automated Usenet download tool" +description = "The automated Usenet download tool" upstream = "https://github.com/sabnzbd/sabnzbd" website = "https://sabnzbd.org/"