mirror of
https://github.com/YunoHost/apps.git
synced 2024-09-03 20:06:07 +02:00
add the schema link in toml files
create & add a schema to graveyard.tom tag kavita with "paid-content" aaaaa the autoformater tag kavita with "paid-content" aaaaa the autoformater add the schema link in toml files create & add a schema to antifeatures.toml add 'draft' property to the wishlist schema
This commit is contained in:
parent
cd93e552ee
commit
589b4b5adf
8 changed files with 130 additions and 4 deletions
|
@ -1,3 +1,5 @@
|
|||
#:schema https://github.com/YunoHost/apps/blob/master/schemas/antifeatures.toml.schema.json
|
||||
|
||||
[tracking]
|
||||
icon = "user-secret"
|
||||
title.en = "Tracking"
|
||||
|
|
|
@ -1,3 +1,5 @@
|
|||
#:schema https://github.com/YunoHost/apps/raw/master/schemas/apps.toml.schema.json
|
||||
|
||||
[13ft]
|
||||
category = "reading"
|
||||
level = 7
|
||||
|
|
|
@ -1,3 +1,5 @@
|
|||
#:schema https://raw.githubusercontent.com/YunoHost/apps/master/schemas/categories.toml.schema.json
|
||||
|
||||
[synchronization]
|
||||
icon = "cloud"
|
||||
title.en = "Synchronization"
|
||||
|
|
|
@ -1,3 +1,5 @@
|
|||
#:schema https://github.com/YunoHost/apps/raw/master/schemas/graveyard.toml.schema.json
|
||||
|
||||
[anfora]
|
||||
category = "social_media"
|
||||
subtags = [ "pictures" ]
|
||||
|
|
63
schemas/antifeatures.toml.schema.json
Normal file
63
schemas/antifeatures.toml.schema.json
Normal file
|
@ -0,0 +1,63 @@
|
|||
{
|
||||
"$schema": "http://json-schema.org/draft-07/schema",
|
||||
"$id": "https://github.com/YunoHost/apps/blob/master/schemas/antifeatures.toml.schema.json",
|
||||
"title": "Yunohost's antifeatures.toml schema",
|
||||
"version": "0",
|
||||
"$defs": {
|
||||
"translated_string": {
|
||||
"type": "object",
|
||||
"required": [
|
||||
"en"
|
||||
],
|
||||
"additionalProperties": false,
|
||||
"patternProperties": {
|
||||
"^[a-z]{2}$": {
|
||||
"type": "string"
|
||||
}
|
||||
}
|
||||
}
|
||||
},
|
||||
"type": "object",
|
||||
"required": [],
|
||||
"additionalProperties": false,
|
||||
"patternProperties": {
|
||||
"^[a-z0-9_-]*$": {
|
||||
"type": "object",
|
||||
"required": [
|
||||
"icon",
|
||||
"title",
|
||||
"description"
|
||||
],
|
||||
"additionalProperties": false,
|
||||
"properties": {
|
||||
"icon": {
|
||||
"type": "string"
|
||||
},
|
||||
"title": {
|
||||
"$ref": "#/$defs/translated_string"
|
||||
},
|
||||
"description": {
|
||||
"$ref": "#/$defs/translated_string"
|
||||
},
|
||||
"subtags": {
|
||||
"type": "object",
|
||||
"additionalProperties": false,
|
||||
"patternProperties": {
|
||||
"^[a-z_]*$": {
|
||||
"type": "object",
|
||||
"required": [
|
||||
"title"
|
||||
],
|
||||
"additionalProperties": false,
|
||||
"properties": {
|
||||
"title": {
|
||||
"$ref": "#/$defs/translated_string"
|
||||
}
|
||||
}
|
||||
}
|
||||
}
|
||||
}
|
||||
}
|
||||
}
|
||||
}
|
||||
}
|
48
schemas/graveyard.toml.schema.json
Normal file
48
schemas/graveyard.toml.schema.json
Normal file
|
@ -0,0 +1,48 @@
|
|||
{
|
||||
"$schema": "http://json-schema.org/draft-07/schema",
|
||||
"$id": "https://github.com/YunoHost/apps/blob/master/schemas/graveyard.toml.schema.json",
|
||||
"title": "Yunohost's graveyard.toml schema",
|
||||
"version": "0",
|
||||
"type": "object",
|
||||
"required": [],
|
||||
"additionalProperties": false,
|
||||
"patternProperties": {
|
||||
"^[a-z0-9_-]*$": {
|
||||
"type": "object",
|
||||
"required": [
|
||||
"url"
|
||||
],
|
||||
"additionalProperties": false,
|
||||
"properties": {
|
||||
"category": {
|
||||
"type": "string"
|
||||
},
|
||||
"subtags": {
|
||||
"type": "array",
|
||||
"items": {
|
||||
"type": "string"
|
||||
},
|
||||
"additionalItems": false
|
||||
},
|
||||
"url": {
|
||||
"type": "string",
|
||||
"format": "url"
|
||||
},
|
||||
"antifeatures": {
|
||||
"type": "array",
|
||||
"items": {
|
||||
"type": "string"
|
||||
},
|
||||
"additionalItems": false
|
||||
},
|
||||
"potential_alternative_to": {
|
||||
"type": "array",
|
||||
"items": {
|
||||
"type": "string"
|
||||
},
|
||||
"additionalItems": false
|
||||
}
|
||||
}
|
||||
}
|
||||
}
|
||||
}
|
|
@ -3,14 +3,16 @@
|
|||
"$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"],
|
||||
"required": [
|
||||
"name",
|
||||
"upstream"
|
||||
],
|
||||
"additionalProperties": false,
|
||||
"properties": {
|
||||
"name": {
|
||||
|
@ -26,9 +28,12 @@
|
|||
"website": {
|
||||
"type": "string",
|
||||
"format": "url"
|
||||
},
|
||||
"draft": {
|
||||
"type": "string",
|
||||
"format": "url"
|
||||
}
|
||||
}
|
||||
}
|
||||
}
|
||||
|
||||
}
|
||||
}
|
|
@ -1,3 +1,5 @@
|
|||
#:schema https://github.com/YunoHost/apps/raw/master/schemas/wishlist.toml.schema.json
|
||||
|
||||
[access-to-memory-atom]
|
||||
name = "Access to Memory (AtoM)"
|
||||
description = "Standards-based archival description and access in a multilingual, multi-repository environment."
|
||||
|
|
Loading…
Add table
Reference in a new issue