Add json-schema for wishlist.toml, and fix wishlist.toml

This commit is contained in:
Félix Piédallu
2023-09-26 15:26:51 +02:00
parent d0cb365c73
commit 72e1b93ccd
2 changed files with 35 additions and 1 deletions

View File

@ -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"
}
}
}
}
}