mirror of
https://github.com/YunoHost/apps.git
synced 2024-09-03 20:06:07 +02:00
Merge pull request #1742 from Salamandar/fix_manifest_schema
Fix manifest schema
This commit is contained in:
commit
02d8b59f43
1 changed files with 33 additions and 11 deletions
|
@ -7,14 +7,21 @@
|
|||
"type": "object",
|
||||
"$defs": {
|
||||
"translated_string": {
|
||||
"type": "object",
|
||||
"required": ["en"],
|
||||
"additionalProperties": false,
|
||||
"patternProperties": {
|
||||
"^[a-z]{2}$": {
|
||||
"anyOf": [
|
||||
{
|
||||
"type": "object",
|
||||
"required": ["en"],
|
||||
"additionalProperties": false,
|
||||
"patternProperties": {
|
||||
"^[a-z]{2}$": {
|
||||
"type": "string"
|
||||
}
|
||||
}
|
||||
},
|
||||
{
|
||||
"type": "string"
|
||||
}
|
||||
}
|
||||
]
|
||||
},
|
||||
"byte_size": {
|
||||
"type": "string",
|
||||
|
@ -26,11 +33,11 @@
|
|||
},
|
||||
"path_absolute": {
|
||||
"type": "string",
|
||||
"pattern": "^/.*$"
|
||||
"pattern": "^(__[A-Z_]*__)?/.*$"
|
||||
},
|
||||
"name_and_permission": {
|
||||
"type": "string",
|
||||
"pattern": "^([a-z_][a-z0-9_-]{0,30})(:[rwx-]{3})?$"
|
||||
"pattern": "^(([a-z_][a-z0-9_-]{0,30})|([_A-Z]*))(:[rwx-]{1,3})?$"
|
||||
},
|
||||
"sha256sum": {
|
||||
"type": "string",
|
||||
|
@ -192,6 +199,20 @@
|
|||
}
|
||||
}
|
||||
]
|
||||
},
|
||||
"pattern": {
|
||||
"type": "object",
|
||||
"required": [],
|
||||
"additionalProperties": false,
|
||||
"properties": {
|
||||
"regexp": {
|
||||
"type": "string",
|
||||
"format": "regex"
|
||||
},
|
||||
"error": {
|
||||
"type": "string"
|
||||
}
|
||||
}
|
||||
}
|
||||
}
|
||||
}
|
||||
|
@ -294,9 +315,10 @@
|
|||
},
|
||||
"additional_urls": {
|
||||
"type": "array",
|
||||
"items": {
|
||||
"type": "string"
|
||||
}
|
||||
"items": {"$ref": "#/$defs/path_absolute"}
|
||||
},
|
||||
"label": {
|
||||
"type": "string"
|
||||
}
|
||||
}
|
||||
}
|
||||
|
|
Loading…
Add table
Reference in a new issue