mirror of
https://github.com/YunoHost/apps.git
synced 2024-09-03 20:06:07 +02:00
create & add a schema to graveyard.tom
This commit is contained in:
parent
8ee7e265d6
commit
827f62a230
2 changed files with 50 additions and 0 deletions
|
@ -1,3 +1,5 @@
|
|||
#:schema https://github.com/YunoHost/apps/raw/master/schemas/graveyard.toml.schema.json
|
||||
|
||||
[anfora]
|
||||
category = "social_media"
|
||||
subtags = [ "pictures" ]
|
||||
|
|
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
|
||||
}
|
||||
}
|
||||
}
|
||||
}
|
||||
}
|
Loading…
Add table
Reference in a new issue