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,6 +7,8 @@
|
||||||
"type": "object",
|
"type": "object",
|
||||||
"$defs": {
|
"$defs": {
|
||||||
"translated_string": {
|
"translated_string": {
|
||||||
|
"anyOf": [
|
||||||
|
{
|
||||||
"type": "object",
|
"type": "object",
|
||||||
"required": ["en"],
|
"required": ["en"],
|
||||||
"additionalProperties": false,
|
"additionalProperties": false,
|
||||||
|
@ -16,6 +18,11 @@
|
||||||
}
|
}
|
||||||
}
|
}
|
||||||
},
|
},
|
||||||
|
{
|
||||||
|
"type": "string"
|
||||||
|
}
|
||||||
|
]
|
||||||
|
},
|
||||||
"byte_size": {
|
"byte_size": {
|
||||||
"type": "string",
|
"type": "string",
|
||||||
"pattern": "^[0-9]*(\\.[0-9]*)?[kKmMgG]$"
|
"pattern": "^[0-9]*(\\.[0-9]*)?[kKmMgG]$"
|
||||||
|
@ -26,11 +33,11 @@
|
||||||
},
|
},
|
||||||
"path_absolute": {
|
"path_absolute": {
|
||||||
"type": "string",
|
"type": "string",
|
||||||
"pattern": "^/.*$"
|
"pattern": "^(__[A-Z_]*__)?/.*$"
|
||||||
},
|
},
|
||||||
"name_and_permission": {
|
"name_and_permission": {
|
||||||
"type": "string",
|
"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": {
|
"sha256sum": {
|
||||||
"type": "string",
|
"type": "string",
|
||||||
|
@ -192,6 +199,20 @@
|
||||||
}
|
}
|
||||||
}
|
}
|
||||||
]
|
]
|
||||||
|
},
|
||||||
|
"pattern": {
|
||||||
|
"type": "object",
|
||||||
|
"required": [],
|
||||||
|
"additionalProperties": false,
|
||||||
|
"properties": {
|
||||||
|
"regexp": {
|
||||||
|
"type": "string",
|
||||||
|
"format": "regex"
|
||||||
|
},
|
||||||
|
"error": {
|
||||||
|
"type": "string"
|
||||||
|
}
|
||||||
|
}
|
||||||
}
|
}
|
||||||
}
|
}
|
||||||
}
|
}
|
||||||
|
@ -294,13 +315,14 @@
|
||||||
},
|
},
|
||||||
"additional_urls": {
|
"additional_urls": {
|
||||||
"type": "array",
|
"type": "array",
|
||||||
"items": {
|
"items": {"$ref": "#/$defs/path_absolute"}
|
||||||
|
},
|
||||||
|
"label": {
|
||||||
"type": "string"
|
"type": "string"
|
||||||
}
|
}
|
||||||
}
|
}
|
||||||
}
|
}
|
||||||
}
|
}
|
||||||
}
|
|
||||||
},
|
},
|
||||||
"ports": {
|
"ports": {
|
||||||
"type": "object",
|
"type": "object",
|
||||||
|
|
Loading…
Add table
Reference in a new issue